Эх сурвалжийг харах

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

zhangjie 1 сар өмнө
parent
commit
861be8a8f4

+ 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 } });