Authored by 杨延青

Merge branch 'feature/grassV2' into 'release/6.8.7'

fix del



See merge request !19
... ... @@ -137,13 +137,13 @@ export default {
});
},
async onShowMore({article, index}) {
if (this.yoho && this.yoho.context.isLogin && !this._uid) {
if (this.yoho && this.yoho.context.isLogin && !this._userUid) {
let user = await this.$sdk.getUser();
this._uid = user.uid;
this._userUid = user.uid;
}
this.$refs.moreAction.show(article, this._uid, index);
this.$refs.moreAction.show(article, this._userUid, index);
},
onDelete(index) {
this.$refs.scroll.delete(index);
... ...
... ... @@ -101,7 +101,7 @@ export default {
href: 'javascript:;'
},
onConfirm: () => {
this.deleteArticle(this._params.articleId).then(res => {
this.deleteArticle(this._params).then(res => {
if (res.code === 200) {
this.$emit('on-delete', this._params.articleId);
} else {
... ...