0👍
I guess the first call comes from this part
created() {
this.searchParams.sortType = "ASEC";
},
It triggers the watcher and causes the first call to loadDataFromBackend
But why do you set sortType
to DESC
in data()
and change it right after creating to ASEC
?
This does not make any sense to me. I would just put ASEC
as default value.
- [Vuejs]-Disable scrolling when keyboard opens up for ion-input
- [Vuejs]-How get response in axios when api is steam like SSE (Server-Send Events)
Source:stackexchange.com