From 60f17db7503ad13f8aaae43aea9d2849218cdc45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=90=E6=98=8E=E6=98=8E?= <970899069@qq.com> Date: Thu, 30 Sep 2021 16:15:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- router/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/router/index.js b/router/index.js index ca262ed..d04e494 100644 --- a/router/index.js +++ b/router/index.js @@ -24,11 +24,11 @@ const router = createRouter({ router.beforeEach((to, from, next) => { const token = store.getters.getToken || uni.getStorageSync('token') // 检查是否需要微信授权 - // if(store.getters.getCode === '' && to.name != 'wxAuth'){ - // next({ - // name: 'wxAuth' - // }) - // } + if(store.getters.getCode === '' && to.name != 'wxAuth'){ + next({ + name: 'wxAuth' + }) + } // 检查是否需要登录 if(to.auth && token === ''){ next({