Ver código fonte

flot terminer

scorpio 2 anos atrás
pai
commit
a1e2cf3538
2 arquivos alterados com 2 adições e 1 exclusões
  1. 1 1
      src/api/fetch.js
  2. 1 0
      src/views/home/component/dispatch.vue

+ 1 - 1
src/api/fetch.js

@@ -36,7 +36,7 @@ function fetch(
   header = {},
   responseType = '',
   insurance,
-  timeout = 30000
+  timeout = 60000
 ) {
   contentType === 'form' && (contentType = 'application/x-www-form-urlencoded')
   contentType === 'json' && (contentType = 'application/json')

+ 1 - 0
src/views/home/component/dispatch.vue

@@ -397,6 +397,7 @@ export default {
         year: this.year,
         month: this.month
       }
+      this.loading = true
       this.$api.dispatch.exportFile(data).then(res => {
         if (res.size === 0 || Object.hasOwn(res, 'code')) {
           this.$message.error('暂无文件或者下载错误,请稍后再试...')