Use "~" as a route namespace symbol

This commit is contained in:
Maxim Filippov 2018-12-10 01:21:52 +03:00
parent 3d968e31da
commit ae8f0f36d8
9 changed files with 1321 additions and 663 deletions

View file

@ -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')
})
})
}

View file

@ -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')
})
}
}

View file

@ -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)
}

View file

@ -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
}