[update] 文件导入错误信息的提示

This commit is contained in:
fengchenchen
2021-08-30 17:29:32 +08:00
parent f24acddbf5
commit f4f4d9ba0d
+14 -1
View File
@@ -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('</br>')
let htmlDom = []
messageArr.map(tt => {
if(tt) {
htmlDom.push((<div>{tt}</div>))
}
})
this.$warning({
title: '文件导入错误',
content: (h) => <div>
{htmlDom}
</div>
})
// this.$message.error(`${info.file.name} ${info.file.response.message}.`);
}
} else if (info.file.status === 'error') {
if (info.file.response.status === 500) {