has a filter form, which is bound to filter
, and watch
listener calls
this.$router.push ({query:this.filter})
whenever there is a change, reflecting the filter parameters into the url
parameter. When opening the URL such as / aquib
, the query
parameter is reflected on the filter
form.
so it falls into an endless cycle,
filter
will affect query
query
will affect filter
the final filter parameters are subject to url
initial use of vuex, does not need to show filter conditions, no problem. Now it is required to display filter conditions in url mode.
is a bit confused. How to avoid this endless cycle?