Commit 4d6429d1 by 姜雷

修改子系统判断

parent d83f87da
...@@ -146,12 +146,13 @@ export default { ...@@ -146,12 +146,13 @@ export default {
}) })
.then(userRoles => { .then(userRoles => {
console.log('login done'); console.log('login done');
this.loading = false; this.loading = false;
if ( if (
userRoles.find( userRoles.find(
item => item.menuCode === process.env.VUE_APP_DASHBOARD_CODE item => item.menuCode === process.env.VUE_APP_DASHBOARD_CODE
) && ) &&
process.env.VUE_APP_BASE_URL === '/' this.$router.options.base === '/'
) { ) {
this.$router.push({ path: '/' }); this.$router.push({ path: '/' });
setTimeout(() => { 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