Browse Source

fix(notice): notice template debug

lind 3 years atrás
parent
commit
e335658caf
1 changed files with 2 additions and 1 deletions
  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}