jeecg-boot 2.0 模块开发版本发布

This commit is contained in:
zhangdaihao
2019-05-19 18:54:09 +08:00
parent 64fb100ea2
commit 4858af9f33
770 changed files with 85014 additions and 19508 deletions

View File

@ -22,7 +22,7 @@ router.beforeEach((to, from, next) => {
} else {
if (store.getters.permissionList.length === 0) {
store.dispatch('GetPermissionList').then(res => {
const menuData = res.result;
const menuData = res.result.menu;
console.log(res.message)
if (menuData === null || menuData === "" || menuData === undefined) {
return;
@ -45,10 +45,10 @@ router.beforeEach((to, from, next) => {
})
})
.catch(() => {
notification.error({
/* notification.error({
message: '系统提示',
description: '请求用户信息失败,请重试!'
})
})*/
store.dispatch('Logout').then(() => {
next({ path: '/user/login', query: { redirect: to.fullPath } })
})