|
|
@@ -365,11 +365,9 @@ const resetLoginState = () => {
|
|
|
formData.mobile = ''
|
|
|
formData.code = ''
|
|
|
agree.value = false
|
|
|
-
|
|
|
isCounting.value = false
|
|
|
countDown.value = 60
|
|
|
sending.value = false
|
|
|
-
|
|
|
showDialog.value = false
|
|
|
loginDialog.value = false
|
|
|
changePasswordDialog.value = false
|
|
|
@@ -393,19 +391,19 @@ onActivated(() => {
|
|
|
})
|
|
|
|
|
|
onBeforeMount(() => {
|
|
|
- userStore.LogOut()
|
|
|
registerUrlParams.value.returnUrl = `${location.origin}/h5${route.fullPath}`
|
|
|
- const pushRecordId = route?.query.pushRecordId || ''
|
|
|
- console.log('pushRecordId', pushRecordId)
|
|
|
-
|
|
|
- if (pushRecordId) {
|
|
|
- sendEtsSms.pushRecordId = pushRecordId as string
|
|
|
- userStore.setPushRecordId(pushRecordId as string)
|
|
|
- formData.pushRecordId = pushRecordId as string
|
|
|
- getPubName()
|
|
|
- } else {
|
|
|
- showToast('登录链接存在不完整或者输入错误,请重新复制链接登录')
|
|
|
+ const pushRecordId = route.query.pushRecordId
|
|
|
+ if (!pushRecordId) {
|
|
|
+ userStore.setPushRecordId('')
|
|
|
+ formData.pushRecordId = ''
|
|
|
+ sendEtsSms.pushRecordId = ''
|
|
|
+ showToast('登录链接存在不完整或者输入错误')
|
|
|
+ return
|
|
|
}
|
|
|
+ userStore.setPushRecordId(pushRecordId as string)
|
|
|
+ sendEtsSms.pushRecordId = pushRecordId as string
|
|
|
+ formData.pushRecordId = pushRecordId as string
|
|
|
+ getPubName()
|
|
|
})
|
|
|
</script>
|
|
|
|