我报名的老数据删除

This commit is contained in:
zhaofang
2022-06-02 17:33:39 +08:00
parent e577d7a313
commit dc17320d1a

View File

@@ -463,9 +463,9 @@
if (this.delData.isOld) { if (this.delData.isOld) {
apiBoeCourse.delLearning(this.delData.kid).then(res => { apiBoeCourse.delLearning(this.delData.kid).then(res => {
if (res.status == 200) { if (res.status == 200) {
this.$message({ this.$refs.articleToast.show({
type: 'success', message: '删除成功',
message: '删除成功!' type: 'success'
}); });
this.studyList.forEach((item, index) => { this.studyList.forEach((item, index) => {
if (item.id === this.delData.id) { if (item.id === this.delData.id) {
@@ -478,9 +478,9 @@
} }
}) })
} else { } else {
this.$message({ this.$refs.articleToast.show({
type: 'error', message: '删除失败,请稍后再试',
message: res.message type: 'error'
}); });
} }
}); });