CN:936 fix:报告、知识库、管理模块点击删除或编辑时,点击右上角X及cancel,报错

This commit is contained in:
hyx
2023-03-27 11:11:00 +08:00
parent 5433006ebd
commit 43102c94c4
5 changed files with 13 additions and 13 deletions

View File

@@ -126,7 +126,7 @@ export default {
this.$message.error(response.msg)
}
})
})
}).catch(e => {})
},
delBatch () {
const ids = []
@@ -139,7 +139,7 @@ export default {
this.$alert(this.$t('tip.pleaseSelect'), {
confirmButtonText: this.$t('tip.yes'),
type: 'warning'
})
}).catch(() => {})
} else {
this.$confirm(this.$t('tip.confirmDelete'), {
confirmButtonText: this.$t('tip.yes'),
@@ -158,7 +158,7 @@ export default {
}).finally(() => {
this.tools.loading = false
})
})
}).catch(() => {})
}
},
newObject () {
@@ -204,7 +204,7 @@ export default {
this.$alert(this.$t('tip.pleaseSelectForEdit'), {
confirmButtonText: this.$t('tip.yes'),
type: 'warning'
})
}).catch(() => {})
} else {
get(`${this.url}/${this.batchDeleteObjs[0].id}`).then(response => {
if (response.code === 200) {