feat 跳转问题fix
This commit is contained in:
parent
acebf25ddc
commit
dd1a120ea4
|
|
@ -333,7 +333,6 @@ const loginFun = async () => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const loginHandle = async (data: any) => {
|
const loginHandle = async (data: any) => {
|
||||||
const { token, mobile } = data
|
const { token, mobile } = data
|
||||||
if (!mobile && isForceBindMobile.value) {
|
if (!mobile && isForceBindMobile.value) {
|
||||||
|
|
@ -355,17 +354,17 @@ const loginHandle = async (data: any) => {
|
||||||
// 刷新上一个页面
|
// 刷新上一个页面
|
||||||
onLoad && onLoad(options)
|
onLoad && onLoad(options)
|
||||||
} else if (cache.get(BACK_URL)) {
|
} else if (cache.get(BACK_URL)) {
|
||||||
try {
|
try {
|
||||||
router.redirectTo(cache.get(BACK_URL))
|
router.switchTab(cache.get(BACK_URL))
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
router.switchTab(cache.get(BACK_URL))
|
router.redirectTo(cache.get(BACK_URL))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
try {
|
// try {
|
||||||
router.reLaunch('/pages/index/index')
|
// router.reLaunch('/pages/index/index')
|
||||||
} catch (error) {
|
// } catch (error) {
|
||||||
router.switchTab('/pages/index/index')
|
router.switchTab('/pages/index/index')
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
cache.remove(BACK_URL)
|
cache.remove(BACK_URL)
|
||||||
}
|
}
|
||||||
|
|
@ -388,7 +387,7 @@ const oaLogin = async (options: any = { getUrl: true }) => {
|
||||||
const wxLogin = async () => {
|
const wxLogin = async () => {
|
||||||
if (!isCheckAgreement.value && isOpenAgreement.value) {
|
if (!isCheckAgreement.value && isOpenAgreement.value) {
|
||||||
showModel.value = true
|
showModel.value = true
|
||||||
console.log(showModel.value)
|
// console.log(showModel.value)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -481,10 +480,7 @@ onLoad(async () => {
|
||||||
wechatOa.setAuthData()
|
wechatOa.setAuthData()
|
||||||
}
|
}
|
||||||
//#endif
|
//#endif
|
||||||
})
|
})
|
||||||
if (isLogin.value == true) {
|
|
||||||
window.location.href = '/mobile/pages/user/user'
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue