Преглед на файлове

feat: 导入后的信息提示修改

zhangjie преди 1 месец
родител
ревизия
861be8a8f4
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      src/components/import-dialog/index.vue

+ 3 - 1
src/components/import-dialog/index.vue

@@ -255,7 +255,9 @@
         if (res.hasError) {
           const failRecords = res.failRecords;
           const message = failRecords
-            .map((item) => `第${item.lineNum}行:${item.msg}`)
+            .map((item) =>
+              item.lineNum ? `第${item.lineNum}行:${item.msg}` : item.msg
+            )
             .join('。');
 
           onError({ data: { message } });