diff --git a/src/router/index.js b/src/router/index.js index 670f816..2db95c8 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -23,7 +23,7 @@ const globalRoutes = [ { path: '/dingtalkluck', component: _import('common/dingtalkluck'), name: 'dingtalkluck', meta: { title: '钉钉抽奖登记' } }, { path: '/404', component: _import('common/404'), name: '404', meta: { title: '404未找到' } }, { 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 = [ @@ -135,7 +135,7 @@ router.beforeEach((to, from, next) => { //next() } else { apiGetMenuNav({}).then(res => { - if (res && res.code == 200) { + if (res && res.code === 200) { fnAddDynamicMenuRoutes(res.menuList) router.options.isAddDynamicMenuRoutes = true sessionStorage.setItem('menuList', JSON.stringify(res.menuList || '[]'))