Explorar el Código

fix(notice): notice template debug

lind hace 4 años
padre
commit
e335658caf
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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}