From 67f91522c9ad7c2a0eb5663ba4273d5a97c010e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E8=80=98=E7=A8=B7?= <18026623439@163.com> Date: Sat, 6 Feb 2021 11:43:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E5=BE=AE=E4=BF=A1=E5=85=AC?= =?UTF-8?q?=E4=BC=97=E5=8F=B7=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/index.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/utils/index.js b/utils/index.js index 4eefecf..7d511bc 100644 --- a/utils/index.js +++ b/utils/index.js @@ -217,7 +217,7 @@ export const login = () => { redirect = redirect.split('/pages')[1] if(!redirect){ redirect="/Loading/index"; - } + } reLaunch({ path: '/pages' + redirect, }); @@ -619,13 +619,13 @@ export function routerPermissions(url, type) { }) cookie.set('redirect', path) }) - // } else if (Vue.prototype.$deviceType == 'weixin') { - // wechat().then(() => oAuth()); - // if (!type) { - // push({ - // path: url, - // }) - // } + } else if (Vue.prototype.$deviceType == 'weixin') { + wechat().then(() => oAuth()); + if (!type) { + push({ + path: url, + }) + } } else { console.log(path) // 如果不是小程序跳转到登录页