:fix: the preference button does not render correctly in time.
This commit is contained in:
parent
3d7562a4da
commit
55de0b557a
@ -171,18 +171,12 @@ export default {
|
|||||||
idArticle: idArticle,
|
idArticle: idArticle,
|
||||||
articlePerfect: '0'
|
articlePerfect: '0'
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
if (res) {
|
_ts.$store.commit('admin/updateArticlePreference', {
|
||||||
if (res.success) {
|
index: index,
|
||||||
_ts.$store.commit('admin/updateArticlePreference', {
|
idArticle: idArticle,
|
||||||
index: index,
|
articlePerfect: '0'
|
||||||
idArticle: idArticle,
|
})
|
||||||
articlePerfect: '0'
|
_ts.$message.success("取消成功!");
|
||||||
})
|
|
||||||
_ts.$message.success("取消成功!");
|
|
||||||
} else {
|
|
||||||
_ts.$message.error(_ts.message);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
updateTags(index, article) {
|
updateTags(index, article) {
|
||||||
|
@ -517,18 +517,12 @@ export default {
|
|||||||
idArticle: idArticle,
|
idArticle: idArticle,
|
||||||
articlePerfect: '0'
|
articlePerfect: '0'
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
if (res) {
|
_ts.$store.commit('admin/updateArticlePreference', {
|
||||||
if (res.success) {
|
index: index,
|
||||||
_ts.$store.commit('admin/updateArticlePreference', {
|
idArticle: idArticle,
|
||||||
index: index,
|
articlePerfect: '0'
|
||||||
idArticle: idArticle,
|
})
|
||||||
articlePerfect: '0'
|
_ts.$message.success("取消成功!");
|
||||||
})
|
|
||||||
_ts.$message.success("取消成功!");
|
|
||||||
} else {
|
|
||||||
_ts.$message.error(_ts.message);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
updateTags(index, article) {
|
updateTags(index, article) {
|
||||||
|
Loading…
Reference in New Issue
Block a user