|
@@ -10,6 +10,7 @@ import { ImagePickController } from "./controllers/ImagePickerController";
|
|
import { helpers } from "./helpers";
|
|
import { helpers } from "./helpers";
|
|
import { https } from "./https";
|
|
import { https } from "./https";
|
|
import { store } from "./stores";
|
|
import { store } from "./stores";
|
|
|
|
+import { useRoute } from "vue-router";
|
|
|
|
|
|
export class EditorModule extends ModuleRoot {
|
|
export class EditorModule extends ModuleRoot {
|
|
config = this.setConfig({
|
|
config = this.setConfig({
|
|
@@ -37,6 +38,16 @@ export class EditorModule extends ModuleRoot {
|
|
onReady() {
|
|
onReady() {
|
|
this.actions.init();
|
|
this.actions.init();
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ jumpIndexHtml(route = "#/") {
|
|
|
|
+ const _params = new URLSearchParams(decodeURIComponent(location.search));
|
|
|
|
+ const host = _params.get("host")
|
|
|
|
+ let link = `${location.origin}/index.html?host=${host}${route}`;
|
|
|
|
+ if (location.host == "www.infish.cn") {
|
|
|
|
+ link = `${location.origin}/projects/queenshow/index.html?host=${host}${route}`;
|
|
|
|
+ }
|
|
|
|
+ location.href = link;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
export const { useEditor, initEditor } = EditorModule.hook("Editor");
|
|
export const { useEditor, initEditor } = EditorModule.hook("Editor");
|