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) {