Update articles.vue

This commit is contained in:
ronger 2022-11-01 07:38:52 +08:00 committed by GitHub
parent 55de0b557a
commit c61b7cea5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,12 +157,16 @@ export default {
idArticle: idArticle,
articlePerfect: '1'
}).then(function (res) {
if (res) {
_ts.$store.commit('admin/updateArticlePreference', {
index: index,
idArticle: idArticle,
articlePerfect: '1'
})
_ts.$message.success("设置成功!");
} else {
_ts.$message.error("设置失败!");
}
})
},
cancelPreference(index, idArticle) {
@ -171,12 +175,16 @@ export default {
idArticle: idArticle,
articlePerfect: '0'
}).then(function (res) {
if (res) {
_ts.$store.commit('admin/updateArticlePreference', {
index: index,
idArticle: idArticle,
articlePerfect: '0'
})
_ts.$message.success("取消成功!");
} else {
_ts.$message.error("取消失败!");
}
})
},
updateTags(index, article) {