fix: use watcher to check for user query tokens
This commit is contained in:
parent
a106511646
commit
807fb6a9fe
1 changed files with 12 additions and 3 deletions
15
src/App.vue
15
src/App.vue
|
@ -48,9 +48,6 @@ export default defineComponent({
|
|||
},
|
||||
beforeMount() {
|
||||
this.setupOnlineStatus()
|
||||
this.setupPasswortResetRedirect()
|
||||
this.setupEmailVerificationRedirect()
|
||||
this.setupAccountDeletionVerification()
|
||||
},
|
||||
beforeCreate() {
|
||||
setLanguage()
|
||||
|
@ -64,6 +61,18 @@ export default defineComponent({
|
|||
this.$router.push({name: 'home'})
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
// Calling these methods in the mounted hook directly does not work.
|
||||
'$route.query.accountDeletionConfirm'() {
|
||||
this.setupAccountDeletionVerification()
|
||||
},
|
||||
'$route.query.userPasswordReset'() {
|
||||
this.setupPasswortResetRedirect()
|
||||
},
|
||||
'$route.query.userEmailConfirm'() {
|
||||
this.setupEmailVerificationRedirect()
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
isTouch() {
|
||||
return isTouchDevice()
|
||||
|
|
Loading…
Reference in a new issue