Procházet zdrojové kódy

fix(notice): notice template debug

lind před 4 roky
rodič
revize
e335658caf
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      src/pages/notice/Template/Debug/index.tsx

+ 2 - 1
src/pages/notice/Template/Debug/index.tsx

@@ -78,7 +78,7 @@ const Debug = observer(() => {
         state1.value = data?.variableDefinitions;
       });
     }
-  }, [state.current]);
+  }, [state.current, state.debug]);
 
   const SchemaField = createSchemaField({
     components: {
@@ -225,6 +225,7 @@ const Debug = observer(() => {
       title="调试"
       width="40vw"
       destroyOnClose
+      forceRender={true}
       visible={state.debug}
       onCancel={() => (state.debug = false)}
       onOk={start}