Authored by 杨延青

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

fix del



See merge request !19
@@ -137,13 +137,13 @@ export default { @@ -137,13 +137,13 @@ export default {
137 }); 137 });
138 }, 138 },
139 async onShowMore({article, index}) { 139 async onShowMore({article, index}) {
140 - if (this.yoho && this.yoho.context.isLogin && !this._uid) { 140 + if (this.yoho && this.yoho.context.isLogin && !this._userUid) {
141 let user = await this.$sdk.getUser(); 141 let user = await this.$sdk.getUser();
142 142
143 - this._uid = user.uid; 143 + this._userUid = user.uid;
144 } 144 }
145 145
146 - this.$refs.moreAction.show(article, this._uid, index); 146 + this.$refs.moreAction.show(article, this._userUid, index);
147 }, 147 },
148 onDelete(index) { 148 onDelete(index) {
149 this.$refs.scroll.delete(index); 149 this.$refs.scroll.delete(index);
@@ -101,7 +101,7 @@ export default { @@ -101,7 +101,7 @@ export default {
101 href: 'javascript:;' 101 href: 'javascript:;'
102 }, 102 },
103 onConfirm: () => { 103 onConfirm: () => {
104 - this.deleteArticle(this._params.articleId).then(res => { 104 + this.deleteArticle(this._params).then(res => {
105 if (res.code === 200) { 105 if (res.code === 200) {
106 this.$emit('on-delete', this._params.articleId); 106 this.$emit('on-delete', this._params.articleId);
107 } else { 107 } else {