x-essential-lib 0.10.27 → 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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import { Fragment, Transition, computed, createBlock, createCommentVNode, create
4
4
  import { useI18n } from "vue-i18n";
5
5
  import { useDisplay, useTheme } from "vuetify";
6
6
  import axios from "axios";
7
- import { onBeforeRouteUpdate, useRoute, useRouter } from "vue-router";
7
+ import { useRoute, useRouter } from "vue-router";
8
8
  import { getErrorMessage } from "x-error-lib";
9
9
  import { createAxios as createAxios$1, messageError as messageError$1 } from "x-essential-lib";
10
10
 
@@ -846,9 +846,9 @@ function useRouteChange(onRouteChange) {
846
846
  onBeforeMount(async () => {
847
847
  await onRouteChange();
848
848
  });
849
- onBeforeRouteUpdate(async () => {
849
+ watch([() => route.path, () => route.query], async () => {
850
850
  await onRouteChange();
851
- });
851
+ }, { deep: true });
852
852
  return { syncOrg };
853
853
  }
854
854
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
- "version": "0.10.27",
3
+ "version": "0.10.29",
4
4
  "files": [
5
5
  "dist"
6
6
  ],