...
|
...
|
@@ -53,7 +53,7 @@ export default { |
|
|
params = params || {};
|
|
|
|
|
|
this.list[0].hide = params.hasAttention !== 'Y';
|
|
|
this.list[2].hide = params.authorUid !== uid || params.authorUid !== 1;
|
|
|
this.list[2].hide = params.authorUid !== uid || params.authorType !== 1;
|
|
|
this.list = [...this.list];
|
|
|
|
|
|
this._params = params;
|
...
|
...
|
@@ -103,7 +103,7 @@ export default { |
|
|
onConfirm: () => {
|
|
|
this.deleteArticle(this._params).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
this.$emit('on-delete', this._params.articleId);
|
|
|
this.$emit('on-delete', this.index);
|
|
|
} else {
|
|
|
this.$createToast({
|
|
|
type: 'warn',
|
...
|
...
|
|