公众号登录调试

This commit is contained in:
Jason
2022-09-15 15:21:43 +08:00
parent 486deb6150
commit 991734a41f
50 changed files with 43 additions and 46 deletions

View File

@@ -289,7 +289,7 @@ const loginHandle = async (data: any) => {
}
})
} else if (cache.get(BACK_URL)) {
console.log(BACK_URL)
console.log(BACK_URL, cache.get(BACK_URL))
uni.redirectTo({ url: cache.get(BACK_URL) })
} else {
uni.reLaunch({
@@ -332,7 +332,6 @@ watch(
onShow(async () => {
try {
if (userStore.isLogin) {
console.log('hasLogin1')
uni.showLoading({
title: '请稍后...'
})
@@ -348,8 +347,6 @@ onShow(async () => {
onLoad(async (options) => {
if (userStore.isLogin) {
// 已经登录 => 首页
console.log('hasLogin2')
uni.reLaunch({
url: '/pages/index/index'
})