From f4f4d9ba0d011bb3975cd0f33fc0880eec2bdb1a Mon Sep 17 00:00:00 2001 From: fengchenchen Date: Mon, 30 Aug 2021 17:29:32 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E6=96=87=E4=BB=B6=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E4=BF=A1=E6=81=AF=E7=9A=84=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mixins/JeroListMixin.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/mixins/JeroListMixin.js b/src/mixins/JeroListMixin.js index 20f52da..21c4c57 100644 --- a/src/mixins/JeroListMixin.js +++ b/src/mixins/JeroListMixin.js @@ -356,7 +356,20 @@ export const JeroListMixin = { } this.loadData() } else { - this.$message.error(`${info.file.name} ${info.file.response.message}.`); + const messageArr = info.file.response.message.split('
') + let htmlDom = [] + messageArr.map(tt => { + if(tt) { + htmlDom.push((
{tt}
)) + } + }) + this.$warning({ + title: '文件导入错误', + content: (h) =>
+ {htmlDom} +
+ }) + // this.$message.error(`${info.file.name} ${info.file.response.message}.`); } } else if (info.file.status === 'error') { if (info.file.response.status === 500) {