fix: 处理数据源校验错误信息太长的问题

This commit is contained in:
taojinlong 2022-01-05 21:30:03 +08:00
parent 2747de3aa8
commit 83ef01c805

View File

@ -403,7 +403,11 @@ export default {
if (res.success) {
this.$success(i18n.t('datasource.validate_success'))
} else {
this.$error(res.message)
if(res.message.length < 2500){
this.$error(res.message)
}else {
this.$error(res.message.substring(0,2500) + '......')
}
}
this.refreshType(data)
})
@ -412,7 +416,11 @@ export default {
if (res.success) {
this.$success(i18n.t('datasource.validate_success'))
} else {
this.$error(res.message)
if(res.message.length < 2500){
this.$error(res.message)
}else {
this.$error(res.message.substring(0,2500) + '......')
}
}
}).catch(res => {
this.$error(res.message)