scorpio 2 жил өмнө
parent
commit
d6a58b8588

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

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