提交 1553d057 authored 作者: 钟是志's avatar 钟是志

一站式一直loading bug修改

上级 9cf50305
......@@ -6,15 +6,15 @@ import { fetchTemplateByCode, fetchTableItem } from '@/webPublic/Services';
export default function RenderForm({ get = 'web', isCg = 'yes', style, ...rest }) {
const tableRoot = useRef();
useEffect(() => {
const timerId = setTimeout(() => {
const div = tableRoot.current && tableRoot.current.root;
if (div) {
div.style.overflow = 'unset';
}
}, 0);
return () => {
clearTimeout(timerId);
}
// const timerId = setTimeout(() => {
// const div = tableRoot.current && tableRoot.current.root;
// if (div) {
// div.style.overflow = 'unset';
// }
// }, 0);
// return () => {
// clearTimeout(timerId);
// }
}, []);
return (
<div className={styles.zyd_onestop_style_class} style={style}>
......
......@@ -23,7 +23,10 @@ export default {
type: 'show',
payload: payload,
});
if (callback) callback();
if (callback && typeof callback === 'function'){
callback();
}
},
*clear({ payload, callback }, { call, put }) {
......@@ -31,7 +34,9 @@ export default {
type: 'list',
payload: [],
});
if (callback) callback();
if (callback && typeof callback === 'function'){
callback();
}
},
*autoCreate({ payload, callback }, { call, put }) {
const response = yield call(apiRequest,api+"/autoCreate" ,payload);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论