bill vor 7 Monaten
Ursprung
Commit
a290a60694
3 geänderte Dateien mit 12 neuen und 3 gelöschten Zeilen
  1. 1 1
      src/api/instance.ts
  2. 0 1
      src/api/setup.ts
  3. 11 1
      src/app.vue

+ 1 - 1
src/api/instance.ts

@@ -46,7 +46,7 @@ addReqErrorHandler((err) => {
   // Message.error(err.message)
   console.error(err);
   hideLoad();
-  // gotoLogin();
+  gotoLogin();
 });
 
 addResErrorHandler((response, data) => {

+ 0 - 1
src/api/setup.ts

@@ -131,7 +131,6 @@ export const axiosFactory = () => {
         hook.before && hook.before(config)
       }
 
-      console.log(axiosConfig.unTokenSet.includes(config.url), config.url)
       if (!matchURL(axiosConfig.unTokenSet, config)) {
         if (!axiosConfig.token) {
           if (!offline && !matchURL(axiosConfig.unReqErrorSet, config)) {

+ 11 - 1
src/app.vue

@@ -26,6 +26,7 @@
       </div>
 
       <span
+        v-if="fuseModels.length > 0 || scenes.length === 0"
         class="taggle map-type"
         @click="isStandard = !isStandard"
         @touchend="isStandard = !isStandard"
@@ -41,7 +42,16 @@
 <script lang="ts" setup>
 import { custom, params } from "@/env";
 import { computed, ref, watch, watchEffect, nextTick } from "vue";
-import { isEdit, prefix, appEl, initialSetting, caseProject, refreshCase } from "@/store";
+import {
+  isEdit,
+  prefix,
+  appEl,
+  initialSetting,
+  caseProject,
+  refreshCase,
+  fuseModels,
+  scenes,
+} from "@/store";
 import router, { currentLayout, RoutesName } from "./router";
 import { loadPack, needMounts } from "@/utils";
 import { ConfigProvider } from "ant-design-vue";