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