:fix: the preference button does not render correctly in time.

This commit is contained in:
Zeeland 2022-11-01 02:59:22 +08:00
parent 3d7562a4da
commit 55de0b557a
2 changed files with 12 additions and 24 deletions

View File

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

View File

@ -517,18 +517,12 @@ export default {
idArticle: idArticle,
articlePerfect: '0'
}).then(function (res) {
if (res) {
if (res.success) {
_ts.$store.commit('admin/updateArticlePreference', {
index: index,
idArticle: idArticle,
articlePerfect: '0'
})
_ts.$message.success("取消成功!");
} else {
_ts.$message.error(_ts.message);
}
}
})
},
updateTags(index, article) {