Handle more watchs route changes bugs
This commit is contained in:
parent
91bd396eab
commit
41e1bad44d
|
@ -56,6 +56,7 @@ onBeforeMount(() => {
|
||||||
watch(
|
watch(
|
||||||
() => route.params.id,
|
() => route.params.id,
|
||||||
(newValue) => {
|
(newValue) => {
|
||||||
|
if (!newValue) return;
|
||||||
getAddressesData(newValue);
|
getAddressesData(newValue);
|
||||||
getClientData(newValue);
|
getClientData(newValue);
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,7 @@ onBeforeMount(() => {
|
||||||
watch(
|
watch(
|
||||||
() => route.params.id,
|
() => route.params.id,
|
||||||
(newValue) => {
|
(newValue) => {
|
||||||
|
if (!newValue) return;
|
||||||
getData(newValue);
|
getData(newValue);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
@ -98,6 +98,7 @@ onBeforeMount(() => {
|
||||||
watch(
|
watch(
|
||||||
() => route.params.id,
|
() => route.params.id,
|
||||||
(newValue) => {
|
(newValue) => {
|
||||||
|
if (!newValue) return;
|
||||||
getData(newValue);
|
getData(newValue);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue