Use "~" as a route namespace symbol
This commit is contained in:
parent
3d968e31da
commit
ae8f0f36d8
9 changed files with 1321 additions and 663 deletions
|
@ -32,7 +32,7 @@ const LoginForm = {
|
|||
.then((result) => {
|
||||
this.$store.commit('setToken', result.access_token)
|
||||
this.$store.dispatch('loginUser', result.access_token)
|
||||
this.$router.push('/p/main/friends')
|
||||
this.$router.push('/~/main/friends')
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ const oac = {
|
|||
}).then((result) => {
|
||||
this.$store.commit('setToken', result.access_token)
|
||||
this.$store.dispatch('loginUser', result.access_token)
|
||||
this.$router.push('/p/main/friends')
|
||||
this.$router.push('/~/main/friends')
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ const registration = {
|
|||
},
|
||||
created () {
|
||||
if ((!this.registrationOpen && !this.token) || this.signedIn) {
|
||||
this.$router.push('/p/main/all')
|
||||
this.$router.push('/~/main/all')
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
@ -51,7 +51,7 @@ const registration = {
|
|||
if (!this.$v.$invalid) {
|
||||
try {
|
||||
await this.signUp(this.user)
|
||||
this.$router.push('/p/main/friends')
|
||||
this.$router.push('/~/main/friends')
|
||||
} catch (error) {
|
||||
console.warn('Registration failed: ' + error)
|
||||
}
|
||||
|
|
|
@ -218,7 +218,7 @@ const UserSettings = {
|
|||
.then((res) => {
|
||||
if (res.status === 'success') {
|
||||
this.$store.dispatch('logout')
|
||||
this.$router.push('/p/main/all')
|
||||
this.$router.push('/~/main/all')
|
||||
} else {
|
||||
this.deleteAccountError = res.error
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue