收藏bug

This commit is contained in:
yanran200730
2023-08-08 10:53:07 +08:00
parent e850bd9f3b
commit 19e969f796

View File

@@ -89,7 +89,8 @@
},
collection (id, isFavorite) {
this.$confirm(isFavorite === '1' ? '确定收藏该文章?' : '确定取消收藏?', '温馨提示', {
console.log(isFavorite)
this.$confirm(isFavorite === '0' ? '确定收藏该文章?' : '确定取消收藏?', '温馨提示', {
confirmButtonText: '确定',
callback: action => {
if (action === 'confirm') {