🐛fix导入失败没提示

This commit is contained in:
不做码农 2023-09-20 17:52:53 +08:00
parent 452fb89dc3
commit f5da308123

View File

@ -11,6 +11,7 @@
:disabled="isUploading"
:on-progress="handleFileUploadProgress"
:on-success="handleFileSuccess"
:on-error="handleFileError"
:auto-upload="true">
<el-button type="primary" icon="Upload">上传文件</el-button>
@ -66,7 +67,9 @@ const handleFileSuccess = (response, file, fileList) => {
emit('success', response)
}
}
const handleFileError = function (error) {
proxy.$modal.msgError('导入数据失败,原因:' + error)
}
function importTemplate() {
proxy.downFile(props.templateUrl)
}