mo 2 rokov pred
rodič
commit
6267257465

+ 1 - 1
src/utils/request-loading.js

@@ -11,7 +11,6 @@ export async function showFullScreenLoading(store) {
     load.startLoading()
   } else {
     await store.dispatch('app/setLoadCount', 1)
-
     clearTimeout(timer)
     timer = null
   }
@@ -22,6 +21,7 @@ export async function showFullScreenLoading(store) {
 export async function tryHideFullScreenLoading(store) {
   await store.dispatch('app/setLoadCount', -1)
   if (store.getters.loadCount <= 0 && store.getters.isLoading) {
+    if(timer)return
     timer = setTimeout(async () => {
       await store.dispatch('app/resetLoadCount')
       await store.dispatch('app/setLoadStatus', false)

+ 0 - 1
src/utils/request.js

@@ -116,7 +116,6 @@ service.interceptors.response.use(
         // console.log('进入403token',getToken())
         vue.$message.error(`登录过期,请重新登录!`);
         removeToken();
-        console.log('清空之后的tocken',getToken())
         await store.dispatch("user/resetToken").then(() => {
           setTimeout(async () => {
           location.reload();

+ 1 - 1
src/views/repairManager/repairList.vue

@@ -527,7 +527,7 @@ export default {
       // soundList
       this.soundLists = [];
       for (let i in this.soundList) {
-        if (this.soundList[i].subjects.length > 0) {
+        if (this.soundList[i]?.subjects?.length > 0) {
           this.soundLists = this.soundLists.concat(this.soundList[i].subjects);
         }
       }