[update] 文件导入错误信息的提示
This commit is contained in:
@@ -356,7 +356,20 @@ export const JeroListMixin = {
|
|||||||
}
|
}
|
||||||
this.loadData()
|
this.loadData()
|
||||||
} else {
|
} 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') {
|
} else if (info.file.status === 'error') {
|
||||||
if (info.file.response.status === 500) {
|
if (info.file.response.status === 500) {
|
||||||
|
|||||||
Reference in New Issue
Block a user