CN-1130 fix: save增加报错信息提示

This commit is contained in:
chenjinsong
2023-06-30 17:24:28 +08:00
parent bdee548bc1
commit 6d6f863ae7

View File

@@ -803,11 +803,11 @@ export default {
}
})
} else {
this.errorMsgHandler(response)
this.$message.error(this.errorMsgHandler(response))
}
}).catch(e => {
console.error(e)
this.errorMsgHandler(e)
this.$message.error(this.errorMsgHandler(e))
}).finally(() => {
this.blockOperation.save = false
})
@@ -832,11 +832,11 @@ export default {
}
})
} else {
this.errorMsgHandler(response)
this.$message.error(this.errorMsgHandler(response))
}
}).catch(e => {
console.error(e)
this.errorMsgHandler(e)
this.$message.error(this.errorMsgHandler(e))
}).finally(() => {
this.blockOperation.save = false
})
@@ -863,7 +863,7 @@ export default {
async getKnowledgeBaseList () {
return await axios.get(this.listUrl, { params: { pageSize: 999 } }).catch(e => {
console.error(e)
this.errorMsgHandler(e)
this.$message.error(this.errorMsgHandler(e))
})
},
editImportedData (index) {