提交 26a545cb authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 f4001bcf
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<app-breadcrumb v-if="hasBreadcrumb"></app-breadcrumb> <app-breadcrumb v-if="hasBreadcrumb"></app-breadcrumb>
</div> </div>
<div class="app-main-container"> <div class="app-main-container">
<router-view></router-view> <router-view :key="$route.fullPath"></router-view>
</div> </div>
</div> </div>
</section> </section>
......
...@@ -18,8 +18,10 @@ export default { ...@@ -18,8 +18,10 @@ export default {
// 设置App配置 // 设置App配置
this.$store.commit('setAppConfig', item) this.$store.commit('setAppConfig', item)
// 重新获取权限 // 重新获取权限
this.$store.dispatch('getPermissions') this.$store.dispatch('getPermissions').then(() => {
this.$router.push({ path: '/' }) // 跳转到首页
this.$router.push({ path: '/', query: { tenant: item.tenant } })
})
} }
} }
} }
......
...@@ -20,7 +20,7 @@ export default async function (to, from, next) { ...@@ -20,7 +20,7 @@ export default async function (to, from, next) {
return return
} }
// 登录白名单 // 登录白名单
const whiteList = [] const whiteList = ['/choose']
if (whiteList.includes(to.path)) { if (whiteList.includes(to.path)) {
next() next()
return return
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论