修复更新bug

This commit is contained in:
yanran200730
2023-08-08 23:02:41 +08:00
parent 4475d8d60d
commit f4ccfe8d74
4 changed files with 22 additions and 11 deletions

View File

@@ -98,7 +98,7 @@
if (action === 'confirm') {
this.$http.post(isFavorite === '0' ? `/api/learning/addFavorite?id=${id}` : `/api/learning/delFavorite?id=${id}`).then(res => {
if (res.code === 0) {
this.$message.success(isFavorite === '1' ? '取消成功' : '收藏成功')
this.$message.success(isFavorite === '0' ? '收藏成功' : '取消成功')
this.getList()
}
})