|
|
@@ -393,19 +393,16 @@ 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) {
|
|
|
+ showToast('登录链接存在不完整或者输入错误')
|
|
|
+ return
|
|
|
}
|
|
|
+ userStore.setPushRecordId(pushRecordId as string)
|
|
|
+ sendEtsSms.pushRecordId = pushRecordId as string
|
|
|
+ formData.pushRecordId = pushRecordId as string
|
|
|
+ getPubName()
|
|
|
})
|
|
|
</script>
|
|
|
|