Commit 84645ac7 by 姜雷

Merge branch 'test' into 'master'

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