guhongwei 2 년 전
부모
커밋
74fa3707c7
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      src/views/patent/admin/examine/hairmess_autoCreate.vue

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

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