ref |> 性能优化评论发布按钮点击
https://issuereporter.developer.huawei.com/detail/240626142105017/comment
Showing
1 changed file
with
3 additions
and
8 deletions
| @@ -64,21 +64,16 @@ export struct CommentCustomDialog { | @@ -64,21 +64,16 @@ export struct CommentCustomDialog { | ||
| 64 | this.publishCommentModel.commentType = '2' | 64 | this.publishCommentModel.commentType = '2' |
| 65 | commentViewModel.publishComment(this.publishCommentModel).then((model: commentItemModel) => { | 65 | commentViewModel.publishComment(this.publishCommentModel).then((model: commentItemModel) => { |
| 66 | this.publishCommentModel.commentContent = '' | 66 | this.publishCommentModel.commentContent = '' |
| 67 | - // | ||
| 68 | - | ||
| 69 | this.publishCommentModel.lastCommentModel = commentViewModel.deepCopyCommentItemModel(model) | 67 | this.publishCommentModel.lastCommentModel = commentViewModel.deepCopyCommentItemModel(model) |
| 70 | // this.commentText = '' | 68 | // this.commentText = '' |
| 71 | - if (this.controller != null) { | ||
| 72 | - this.controller.close() | ||
| 73 | - } | ||
| 74 | if (this.confirm) { | 69 | if (this.confirm) { |
| 75 | this.confirm(bean) | 70 | this.confirm(bean) |
| 76 | } | 71 | } |
| 77 | }).catch(() => { | 72 | }).catch(() => { |
| 78 | - if (this.controller != null) { | ||
| 79 | - this.controller.close() | ||
| 80 | - } | ||
| 81 | }) | 73 | }) |
| 74 | + if (this.controller != null) { | ||
| 75 | + this.controller.close() | ||
| 76 | + } | ||
| 82 | } | 77 | } |
| 83 | 78 | ||
| 84 | build() { | 79 | build() { |
-
Please register or login to post a comment