修复线上异常
This commit is contained in:
parent
8961f8894c
commit
b350cd86d7
@ -23,7 +23,7 @@ const globalRoutes = [
|
|||||||
{ path: '/dingtalkluck', component: _import('common/dingtalkluck'), name: 'dingtalkluck', meta: { title: '钉钉抽奖登记' } },
|
{ path: '/dingtalkluck', component: _import('common/dingtalkluck'), name: 'dingtalkluck', meta: { title: '钉钉抽奖登记' } },
|
||||||
{ path: '/404', component: _import('common/404'), name: '404', meta: { title: '404未找到' } },
|
{ path: '/404', component: _import('common/404'), name: '404', meta: { title: '404未找到' } },
|
||||||
{ path: '/login', component: _import('common/login'), name: 'login', meta: { title: '登录' } },
|
{ path: '/login', component: _import('common/login'), name: 'login', meta: { title: '登录' } },
|
||||||
{ path: '/phoneweblogin', component: _import('common/phoneweblogin'), name: 'login', meta: { title: '登录' } }
|
{ path: '/phoneweblogin', component: _import('common/phoneweblogin'), name: 'phoneweblogin', meta: { title: '登录' } }
|
||||||
]
|
]
|
||||||
|
|
||||||
const dingtalkRoutes = [
|
const dingtalkRoutes = [
|
||||||
@ -135,7 +135,7 @@ router.beforeEach((to, from, next) => {
|
|||||||
//next()
|
//next()
|
||||||
} else {
|
} else {
|
||||||
apiGetMenuNav({}).then(res => {
|
apiGetMenuNav({}).then(res => {
|
||||||
if (res && res.code == 200) {
|
if (res && res.code === 200) {
|
||||||
fnAddDynamicMenuRoutes(res.menuList)
|
fnAddDynamicMenuRoutes(res.menuList)
|
||||||
router.options.isAddDynamicMenuRoutes = true
|
router.options.isAddDynamicMenuRoutes = true
|
||||||
sessionStorage.setItem('menuList', JSON.stringify(res.menuList || '[]'))
|
sessionStorage.setItem('menuList', JSON.stringify(res.menuList || '[]'))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user