fix:CN-1546 知识库导入空csv,接口报错界面未提示

This commit is contained in:
hyx
2024-01-15 18:41:42 +08:00
parent e67ec0905a
commit b286861137

View File

@@ -570,8 +570,8 @@ export default {
return originalImportedData
},
uploadSuccess (response) {
if (response.code === 200) {
this.uploaded = true
// if (response.code === 200) {
// 上传成功后去掉upload和preview的错误提示
this.uploadErrorTip = ''
this.previewErrorTip = ''
@@ -606,10 +606,10 @@ export default {
this.isPreviewChange = true
this.stepHeights[2] = itemListHeight.hasData
this.stepHeightConstant.third = itemListHeight.hasData
/* } else {
} else {
this.uploadLoading = false
this.$message.error(this.$t('tip.uploadFailed', { msg: response.message }))
} */
}
},
onRemove (files) {
if (files && files.status === 'success') {