x-essential-lib 0.10.22 → 0.10.23

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 +4 -4
  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
 
@@ -771,7 +771,7 @@ function useMicroApp(globalStates, ignoreSyncOrg, onRouteChange, customBack) {
771
771
  async function syncOrg() {
772
772
  const orgId = route.query.orgId;
773
773
  if (!orgId) {
774
- router.replace(`/main/${Date.now()}`);
774
+ router.replace({ path: `/main/${Date.now()}` });
775
775
  return false;
776
776
  }
777
777
  if (orgId === "public") {
@@ -789,7 +789,7 @@ function useMicroApp(globalStates, ignoreSyncOrg, onRouteChange, customBack) {
789
789
  eventBus.emit("updatePermission", [toPermissionObjects(permissions), permissions.checksum ?? ""]);
790
790
  return true;
791
791
  } catch (e) {
792
- if (e === "org not found" || e === "org member not found") router.replace(`/main/${Date.now()}`);
792
+ if (e === "org not found" || e === "org member not found") router.replace({ path: `/main/${Date.now()}` });
793
793
  return false;
794
794
  }
795
795
  }
@@ -800,7 +800,7 @@ function useMicroApp(globalStates, ignoreSyncOrg, onRouteChange, customBack) {
800
800
  onBeforeMount(async () => {
801
801
  await fetch();
802
802
  });
803
- onBeforeRouteUpdate(async () => {
803
+ watch(() => route.path, async () => {
804
804
  await fetch();
805
805
  });
806
806
  async function handleBack() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
- "version": "0.10.22",
3
+ "version": "0.10.23",
4
4
  "files": [
5
5
  "dist"
6
6
  ],