From b350cd86d7192cb4292ddd8c7c397fc7c7ae761f Mon Sep 17 00:00:00 2001 From: wulin Date: Mon, 22 Mar 2021 14:03:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BA=BF=E4=B8=8A=E5=BC=82?= =?UTF-8?q?=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 || '[]'))