Merge branch 'feature/grassV2' into release/6.8.7
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -53,7 +53,7 @@ export default { | @@ -53,7 +53,7 @@ export default { | ||
53 | params = params || {}; | 53 | params = params || {}; |
54 | 54 | ||
55 | this.list[0].hide = params.hasAttention !== 'Y'; | 55 | this.list[0].hide = params.hasAttention !== 'Y'; |
56 | - this.list[2].hide = params.authorUid !== uid || params.authorUid !== 1; | 56 | + this.list[2].hide = params.authorUid !== uid || params.authorType !== 1; |
57 | this.list = [...this.list]; | 57 | this.list = [...this.list]; |
58 | 58 | ||
59 | this._params = params; | 59 | this._params = params; |
@@ -103,7 +103,7 @@ export default { | @@ -103,7 +103,7 @@ export default { | ||
103 | onConfirm: () => { | 103 | onConfirm: () => { |
104 | this.deleteArticle(this._params).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.index); |
107 | } else { | 107 | } else { |
108 | this.$createToast({ | 108 | this.$createToast({ |
109 | type: 'warn', | 109 | type: 'warn', |
-
Please register or login to post a comment