x-essential-lib 0.10.27 → 0.10.28

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 +5 -5
  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
 
@@ -843,11 +843,11 @@ function useRouteChange(onRouteChange) {
843
843
  return false;
844
844
  }
845
845
  }
846
- onBeforeMount(async () => {
847
- await onRouteChange();
848
- });
849
- onBeforeRouteUpdate(async () => {
846
+ watch([() => route.path, () => route.query], async () => {
850
847
  await onRouteChange();
848
+ }, {
849
+ deep: true,
850
+ immediate: true
851
851
  });
852
852
  return { syncOrg };
853
853
  }
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.28",
4
4
  "files": [
5
5
  "dist"
6
6
  ],