Commit 84645ac7 by 姜雷

Merge branch 'test' into 'master'

Test See merge request !66
parents 8472eaaa eb72ca21
...@@ -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