浏览代码

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