qinyan 1 年之前
父节点
当前提交
7010d28788
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/modules/editor/components/Viewport/Header/PreviewDesignModal.tsx

+ 3 - 2
src/modules/editor/components/Viewport/Header/PreviewDesignModal.tsx

@@ -17,9 +17,10 @@ export default defineComponent({
   },
   setup(props) {
     const editor = initEditor();
-    const { helper, controls } = editor;
+    const { store, helper, controls } = editor;
     const page = controls.pageCtrl;
-    
+    store.setMode("preview");
+
     controls.pageCtrl.setDesignData(cloneDeep(props.data));
 
     const pageRef = ref();