[解决冲突]

This commit is contained in:
2021-10-11 09:34:08 +08:00
100 changed files with 13784 additions and 11534 deletions

View File

@@ -23,16 +23,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(to.auth && token === ''){
next({
name: 'Login',
NAVTYPE: 'push',
params: {
toName: to.name
}