fix:CN-1546 知识库导入空csv,接口报错界面未提示
This commit is contained in:
@@ -570,8 +570,8 @@ export default {
|
|||||||
return originalImportedData
|
return originalImportedData
|
||||||
},
|
},
|
||||||
uploadSuccess (response) {
|
uploadSuccess (response) {
|
||||||
|
if (response.code === 200) {
|
||||||
this.uploaded = true
|
this.uploaded = true
|
||||||
// if (response.code === 200) {
|
|
||||||
// 上传成功后去掉upload和preview的错误提示
|
// 上传成功后去掉upload和preview的错误提示
|
||||||
this.uploadErrorTip = ''
|
this.uploadErrorTip = ''
|
||||||
this.previewErrorTip = ''
|
this.previewErrorTip = ''
|
||||||
@@ -606,10 +606,10 @@ export default {
|
|||||||
this.isPreviewChange = true
|
this.isPreviewChange = true
|
||||||
this.stepHeights[2] = itemListHeight.hasData
|
this.stepHeights[2] = itemListHeight.hasData
|
||||||
this.stepHeightConstant.third = itemListHeight.hasData
|
this.stepHeightConstant.third = itemListHeight.hasData
|
||||||
/* } else {
|
} else {
|
||||||
this.uploadLoading = false
|
this.uploadLoading = false
|
||||||
this.$message.error(this.$t('tip.uploadFailed', { msg: response.message }))
|
this.$message.error(this.$t('tip.uploadFailed', { msg: response.message }))
|
||||||
} */
|
}
|
||||||
},
|
},
|
||||||
onRemove (files) {
|
onRemove (files) {
|
||||||
if (files && files.status === 'success') {
|
if (files && files.status === 'success') {
|
||||||
|
|||||||
Reference in New Issue
Block a user