vue2-client 1.15.23 → 1.15.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
<template>
|
2
2
|
<page-toggle-transition :disabled="animate.disabled" :animate="animate.name" :direction="animate.direction">
|
3
|
-
<a-keep-alive :exclude-keys="excludeKeys" v-
|
3
|
+
<a-keep-alive :exclude-keys="excludeKeys" v-model="clearCaches">
|
4
4
|
<router-view v-if="!refreshing" :key="$route.path" />
|
5
5
|
</a-keep-alive>
|
6
|
-
<router-view v-else-if="!refreshing" />
|
7
6
|
</page-toggle-transition>
|
8
7
|
</template>
|
9
8
|
|
@@ -99,7 +99,7 @@ const routerMap = {
|
|
99
99
|
path: '/',
|
100
100
|
name: '首页',
|
101
101
|
// 只有在非微前端环境下才进行重定向,或者通过环境变量控制
|
102
|
-
redirect:
|
102
|
+
redirect: window.__MICRO_APP_ENVIRONMENT__ ? undefined : homePage,
|
103
103
|
component: process.env.VUE_APP_SINGLE_PAPER === 'TRUE' ? view.blank : view.tabs,
|
104
104
|
},
|
105
105
|
exp403: {
|
package/src/utils/routerUtil.js
CHANGED
@@ -182,7 +182,7 @@ function loadRoutes (routesConfig) {
|
|
182
182
|
if (routesConfig && routesConfig.length > 0) {
|
183
183
|
const routes = parseRoutes(routesConfig, appRouterMap.routerMap)
|
184
184
|
// 设置路由首页
|
185
|
-
if (
|
185
|
+
if (!window.__MICRO_APP_ENVIRONMENT__) {
|
186
186
|
routes[0].redirect = store.state.setting.homePage
|
187
187
|
}
|
188
188
|
let finalRoutes = mergeRoutes(basicOptions.routes, routes)
|