CN-938 fix: 增加数据不存在的提示

This commit is contained in:
chenjinsong
2023-03-23 18:08:37 +08:00
parent 45d6475243
commit 50296a6291

View File

@@ -430,6 +430,9 @@ export default {
if (this.knowledgeBaseId) {
axios.get(`${api.knowledgeBase}/${this.knowledgeBaseId}`).then(response => {
if (response.data.code === 200) {
if (!response.data.data) {
throw new Error('No data found, id: ' + this.knowledgeBaseId)
}
this.editObject = response.data.data
this.importedData = this.revertImportedData(this.editObject.data)
this.handleShowImportedData()