unify watchers
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
bd05460b90
commit
02cfa54a40
|
@ -97,13 +97,11 @@ function setUserParams(watchedParams) {
|
||||||
}
|
}
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => route.query[$props.searchUrl],
|
() => [route.query[$props.searchUrl], arrayData.store.userParams],
|
||||||
(val, oldValue) => (val || oldValue) && setUserParams(val)
|
([newSearchUrl, newUserParams], [oldSearchUrl, oldUserParams]) => {
|
||||||
);
|
if (newSearchUrl || oldSearchUrl) setUserParams(newSearchUrl);
|
||||||
|
if (newUserParams || oldUserParams) setUserParams(newUserParams);
|
||||||
watch(
|
}
|
||||||
() => arrayData.store.userParams,
|
|
||||||
(val, oldValue) => (val || oldValue) && setUserParams(val)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
|
|
Loading…
Reference in New Issue