瀏覽代碼

flot terminer

scorpio 2 年之前
父節點
當前提交
1b951fc092
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
         }