mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +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)
|
return this.$apollo.loading || (this.posts && this.posts.length > 0)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watchQuery: ['hashtag'],
|
||||||
'$route.query.hashtag'() {
|
|
||||||
this.hashtag = this.$route.query.hashtag ? this.$route.query.hashtag : null
|
|
||||||
},
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
...mapMutations({
|
...mapMutations({
|
||||||
selectOrder: 'posts/SELECT_ORDER',
|
selectOrder: 'posts/SELECT_ORDER',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user