|
@@ -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();
|