Commit 1f7efaa5 by 姜雷

Merge branch 'develop' into 'test'

修改登录后先进入首页后再导航到数据首页 See merge request !63
parents 15abd2ea d83f87da
......@@ -84,6 +84,7 @@
import { mapActions } from 'vuex';
import { fetchVcode } from '@/api/user/login';
import CodeView from './components/CodeView';
import { setTimeout } from 'timers';
export default {
name: 'login',
......@@ -149,9 +150,13 @@ export default {
if (
userRoles.find(
item => item.menuCode === process.env.VUE_APP_DASHBOARD_CODE
)
) &&
process.env.VUE_APP_BASE_URL === '/'
) {
this.$router.push({ path: '/' });
setTimeout(() => {
this.$router.push({ name: 'dashboard' });
}, 400);
} else {
this.$router.push({ path: '/' });
}
......
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