mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
use watchQuery to watch query in URL instead of watch
This commit is contained in:
parent
7d29400ef9
commit
fa7f1bb111
@ -130,11 +130,7 @@ export default {
|
||||
return this.$apollo.loading || (this.posts && this.posts.length > 0)
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
'$route.query.hashtag'() {
|
||||
this.hashtag = this.$route.query.hashtag ? this.$route.query.hashtag : null
|
||||
},
|
||||
},
|
||||
watchQuery: ['hashtag'],
|
||||
methods: {
|
||||
...mapMutations({
|
||||
selectOrder: 'posts/SELECT_ORDER',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user