guhongwei 2 år sedan
förälder
incheckning
d442f6a36f
1 ändrade filer med 3 tillägg och 1 borttagningar
  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}` });