|
@@ -4,7 +4,7 @@ import { defineComponent } from "vue";
|
|
|
|
|
|
export default defineComponent(() => {
|
|
|
const editor = initEditor();
|
|
|
- const params = new URLSearchParams(location.href.split("?")[1]);
|
|
|
+ const params = new URLSearchParams(location.href.split("?")[1].split("#")[0]);
|
|
|
const id = params.get("id");
|
|
|
const isSys = params.get("isSys");
|
|
|
const isWk = params.get("isWk");
|
|
@@ -15,7 +15,7 @@ export default defineComponent(() => {
|
|
|
if (isWk) {
|
|
|
editor.actions.initWkDesign(id);
|
|
|
} else {
|
|
|
- editor.actions.initDesign(id, isSys?.split("#")[0]);
|
|
|
+ editor.actions.initDesign(id, isSys);
|
|
|
}
|
|
|
|
|
|
editor.controls.wxCtrl.setup(window.location.href);
|
|
@@ -41,7 +41,7 @@ export default defineComponent(() => {
|
|
|
|
|
|
return () => (
|
|
|
<div class="flex items-center justify-center h-100vh bg-gray-100">
|
|
|
- <div class={isPc() ? `h-668px scrollbar` : `h-full`}>
|
|
|
+ <div class={isPc() ? `h-668px scrollbar` : `h-full overflow-x-hidden`}>
|
|
|
<editor.components.Preview />
|
|
|
</div>
|
|
|
</div>
|