|
@@ -603,9 +603,10 @@
|
|
|
let that = this
|
|
|
this.isLoading = true
|
|
|
this.$api.knowledge.DeleteSchoolPoint({
|
|
|
+ code:data.code.replace('Knowledge-',''),
|
|
|
id: data.id
|
|
|
}).then(res => {
|
|
|
- if (res.knowledges) {
|
|
|
+ if (!res.error) {
|
|
|
console.log(this.blockList)
|
|
|
console.log(this.originBlockList)
|
|
|
console.log(data)
|
|
@@ -640,9 +641,10 @@
|
|
|
onOk: () => {
|
|
|
this.isLoadPoints = true
|
|
|
this.$api.knowledge.DeleteSchoolPoint({
|
|
|
+ code:data.code.replace('Knowledge-',''),
|
|
|
id: data.id
|
|
|
}).then(res => {
|
|
|
- if (!res.error && res.knowledges) {
|
|
|
+ if (!res.error) {
|
|
|
this.$Message.success('删除成功')
|
|
|
this.originPointList.splice(this.originPointList.indexOf(data), 1)
|
|
|
if (!this.isShowPoints) this.currentBlock.points.splice(this.currentBlock.points.indexOf(data.id), 1)
|