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

bug fixes

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