Commit 3c597dde authored by 李纪文's avatar 李纪文

feat: 刷新组态不出现问题

parent 8d49ec9a
...@@ -115,6 +115,7 @@ const ConfigurationView = (props) => { ...@@ -115,6 +115,7 @@ const ConfigurationView = (props) => {
let devicesCode = []; let devicesCode = [];
const globalConfig = window.globalConfig || config; const globalConfig = window.globalConfig || config;
let isClose = false; let isClose = false;
console.log(123)
// 子应用包名查找 // 子应用包名查找
const widgets = queryProduct(globalConfig?.widgets || [], decodeURI(window.location.pathname)); const widgets = queryProduct(globalConfig?.widgets || [], decodeURI(window.location.pathname));
const _JessibucaObj = { const _JessibucaObj = {
...@@ -895,11 +896,10 @@ const ConfigurationView = (props) => { ...@@ -895,11 +896,10 @@ const ConfigurationView = (props) => {
}, [props.name, numerals]); }, [props.name, numerals]);
useEffect(() => { useEffect(() => {
isClose = false;
return () => { return () => {
isClose = true; isClose = true;
} }
}, [props.name]); }, []);
useEffect(() => { useEffect(() => {
if (!isModalVisible) { if (!isModalVisible) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment