bill 8 kuukautta sitten
vanhempi
commit
7d02c3dbc4
3 muutettua tiedostoa jossa 4 lisäystä ja 5 poistoa
  1. 3 2
      src/api/instance.ts
  2. 1 2
      src/sdk/association/path.ts
  3. 0 1
      src/views/measure/index.vue

+ 3 - 2
src/api/instance.ts

@@ -36,9 +36,10 @@ const gotoLogin = () => {
       setToken(res.data.data.token)
       setTimeout(() => location.reload())
     });
+  } else {
+    const loginHref = `/admin/#/login`
+    location.href = loginHref + '?redirect=' + escape(location.href)
   }
-  const loginHref = `/admin/#/login`
-  location.href = loginHref + '?redirect=' + escape(location.href)
 };
 
 addReqErrorHandler((err) => {

+ 1 - 2
src/sdk/association/path.ts

@@ -40,8 +40,7 @@ watchEffect(() => {
   if (custom.showPath) {
     const node = getPathNode(custom.showPath);
     node?.visibility(true);
-    node?.fly()
-    console.log('a1', node, custom.showPath)
+    // node?.fly()
   }
 })
 

+ 0 - 1
src/views/measure/index.vue

@@ -60,7 +60,6 @@ import { useViewStack } from "@/hook";
 import type { Measure } from "@/store";
 import type { ActionsItem } from "@/components/actions/index.vue";
 import { asyncTimeout } from "@/utils";
-
 const keyword = ref("");
 const filterMeasures = computed(() =>
   measures.value.filter((measure) => measure.desc.includes(keyword.value))