Commit 4d6429d1 by 姜雷

修改子系统判断

parent d83f87da
......@@ -146,12 +146,13 @@ export default {
})
.then(userRoles => {
console.log('login done');
this.loading = false;
if (
userRoles.find(
item => item.menuCode === process.env.VUE_APP_DASHBOARD_CODE
) &&
process.env.VUE_APP_BASE_URL === '/'
this.$router.options.base === '/'
) {
this.$router.push({ path: '/' });
setTimeout(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment