Procházet zdrojové kódy

部分接口默认触发加载

cfort před 3 roky
rodič
revize
390b41c06e
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      src/api/platform/file/attachment.js

+ 4 - 0
src/api/platform/file/attachment.js

@@ -186,6 +186,7 @@ export function snapshoot(params) {
   return request({
   return request({
     url: SYSTEM_URL() + '/file/upload/runQianUpload',
     url: SYSTEM_URL() + '/file/upload/runQianUpload',
     method: 'post',
     method: 'post',
+    isLoading: true,
     params: params
     params: params
   })
   })
 }
 }
@@ -205,6 +206,7 @@ export function seal(url, fileType, type) {
   return axios({
   return axios({
     url: this.$form.$getSealUploadingFile,
     url: this.$form.$getSealUploadingFile,
     method: 'post',
     method: 'post',
+    isLoading: true,
     data: data
     data: data
   })
   })
 }
 }
@@ -226,6 +228,7 @@ export function sealPre(url, fileKey) {
   return axios({
   return axios({
     url: this.$form.$getSealPreFile,
     url: this.$form.$getSealPreFile,
     method: 'post',
     method: 'post',
+    isLoading: true,
     data: data
     data: data
   })
   })
 }
 }
@@ -239,6 +242,7 @@ export function sealPage(sigFile) {
   return axios({
   return axios({
     url: this.$form.$getSealPageFile,
     url: this.$form.$getSealPageFile,
     method: 'get',
     method: 'get',
+    isLoading: true,
     params: data
     params: data
   })
   })
 }
 }