Browse Source

Merge branch '09/26smallFuction' into 03/03GRADE

mo 2 years ago
parent
commit
5ecf2b803e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/utils/request-loading.js
  2. 1 1
      src/views/repairManager/repairList.vue

+ 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)

+ 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);
         }
       }