Pārlūkot izejas kodu

After the results are obtained, the loading state of the table should always be turned off

Jerry 2 gadi atpakaļ
vecāks
revīzija
6f43b17172
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      src/components/Table/index.js

+ 2 - 0
src/components/Table/index.js

@@ -188,6 +188,8 @@ export default {
             this.localPagination = false
           }
           this.localDataSource = r.data // 返回结果中的数组数据
+        })
+        .finally(() => {
           this.localLoading = false
         })
       }