hotFix(VnPaginate): watch when is mounted
This commit is contained in:
parent
2faab84962
commit
6abce3c7d0
|
@ -116,7 +116,7 @@ watch(
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => [props.url, props.filter],
|
() => [props.url, props.filter],
|
||||||
([url, filter]) => fetch({ url, filter })
|
([url, filter]) => mounted.value && fetch({ url, filter })
|
||||||
);
|
);
|
||||||
|
|
||||||
const addFilter = async (filter, params) => {
|
const addFilter = async (filter, params) => {
|
||||||
|
|
Loading…
Reference in New Issue