Use query params

This commit is contained in:
Douglas Barone 2022-10-25 13:52:51 -04:00
parent 384728de07
commit 123d27e890

View File

@ -58,6 +58,16 @@ export default {
data: () => ({
username: null
}),
watch: {
username(newVal) {
if (this.$route.query.username != newVal) {
this.$router.push({ query: { username: this.username } })
}
}
},
mounted() {
this.username = this.$route.query.username
},
apollo: {
user: {