From 3155dbd0be68d3a4870106e1ecb00f37e5bce6c9 Mon Sep 17 00:00:00 2001 From: ice breaker <1324318532@qq.com> Date: Mon, 15 Jul 2024 14:29:07 +0800 Subject: [PATCH] chore: try use window location --- apps/shell-vue-app/src/App.vue | 1 + apps/vue-app/src/App.vue | 16 +++++++++++++++- apps/vue2-app/src/App.vue | 10 +++++++++- apps/vue2-app/src/router.ts | 2 ++ 4 files changed, 27 insertions(+), 2 deletions(-) diff --git a/apps/shell-vue-app/src/App.vue b/apps/shell-vue-app/src/App.vue index 27efb13..d8ae8be 100644 --- a/apps/shell-vue-app/src/App.vue +++ b/apps/shell-vue-app/src/App.vue @@ -129,6 +129,7 @@ onBeforeUnmount(() => { v-for="app in apps" v-show="app.visible" :key="app.name" width="100%" height="100%" :name="app.name" :url="app.url" :sync="true" :beforeLoad="beforeLoad" :beforeMount="beforeMount" :afterMount="afterMount" :beforeUnmount="beforeUnmount" :afterUnmount="afterUnmount" + :alive="true" /> diff --git a/apps/vue-app/src/App.vue b/apps/vue-app/src/App.vue index e06f68c..747f39b 100644 --- a/apps/vue-app/src/App.vue +++ b/apps/vue-app/src/App.vue @@ -1,6 +1,20 @@ diff --git a/apps/vue2-app/src/App.vue b/apps/vue2-app/src/App.vue index ef9973d..f848cd8 100644 --- a/apps/vue2-app/src/App.vue +++ b/apps/vue2-app/src/App.vue @@ -1,6 +1,14 @@ diff --git a/apps/vue2-app/src/router.ts b/apps/vue2-app/src/router.ts index a0f836f..61cc9a7 100644 --- a/apps/vue2-app/src/router.ts +++ b/apps/vue2-app/src/router.ts @@ -13,3 +13,5 @@ export const routes: RouteConfig[] = [ ] Vue.use(VueRouter) + +export const subAppLocation = window.__POWERED_BY_WUJIE__ ? window.$wujie.location : window.location