Explorar o código

flot terminer

scorpio %!s(int64=2) %!d(string=hai) anos
pai
achega
1b951fc092
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/views/home/component/dispatch.vue

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

@@ -398,7 +398,7 @@ export default {
         month: this.month
       }
       this.$api.dispatch.exportFile(data).then(res => {
-        if (res.size === 0) {
+        if (res.size === 0 || res.code !== 200) {
           this.$message.error('下载错误,请稍后再试...')
           return
         }