x-essential-lib 0.10.28 → 0.10.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -843,12 +843,12 @@ function useRouteChange(onRouteChange) {
|
|
|
843
843
|
return false;
|
|
844
844
|
}
|
|
845
845
|
}
|
|
846
|
-
|
|
846
|
+
onBeforeMount(async () => {
|
|
847
847
|
await onRouteChange();
|
|
848
|
-
}, {
|
|
849
|
-
deep: true,
|
|
850
|
-
immediate: true
|
|
851
848
|
});
|
|
849
|
+
watch([() => route.path, () => route.query], async () => {
|
|
850
|
+
await onRouteChange();
|
|
851
|
+
}, { deep: true });
|
|
852
852
|
return { syncOrg };
|
|
853
853
|
}
|
|
854
854
|
|