guhongwei hace 2 años
padre
commit
d442f6a36f
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/views/patent/admin/examine/hairmess_autoCreate.vue

+ 3 - 1
src/views/patent/admin/examine/hairmess_autoCreate.vue

@@ -60,7 +60,9 @@ export default {
       let data = { uri: this.uri };
       let res = await this.import(data);
       if (this.$checkRes(res)) {
-        this.$set(this, `list`, res.data);
+        if (res.data && res.data.length > 0) {
+          this.$set(this, `list`, res.data);
+        }
         this.$toast({ type: `success`, message: `操作成功` });
       } else {
         this.$toast({ type: `success`, message: `${res.errmsg}` });