Showing
2 changed files
with
3 additions
and
0 deletions
| @@ -47,6 +47,7 @@ export struct CommentCustomDialog { | @@ -47,6 +47,7 @@ export struct CommentCustomDialog { | ||
| 47 | if (this.onPublishBtnClick) { | 47 | if (this.onPublishBtnClick) { |
| 48 | let content: CommentDialogInputContent = { comment: this.publishCommentModel.commentContent } | 48 | let content: CommentDialogInputContent = { comment: this.publishCommentModel.commentContent } |
| 49 | if (this.onPublishBtnClick(content)) { | 49 | if (this.onPublishBtnClick(content)) { |
| 50 | + this.publishCommentModel.commentContent = '' | ||
| 50 | return | 51 | return |
| 51 | } | 52 | } |
| 52 | } | 53 | } |
| @@ -173,7 +173,9 @@ export class LiveViewModel { | @@ -173,7 +173,9 @@ export class LiveViewModel { | ||
| 173 | } else { | 173 | } else { |
| 174 | success(undefined) | 174 | success(undefined) |
| 175 | } | 175 | } |
| 176 | + setTimeout(()=>{ | ||
| 176 | ToastUtils.showToast(data.tipMessage, 3000) | 177 | ToastUtils.showToast(data.tipMessage, 3000) |
| 178 | + },400) | ||
| 177 | }).catch((message: string) => { | 179 | }).catch((message: string) => { |
| 178 | fail(message) | 180 | fail(message) |
| 179 | }) | 181 | }) |
-
Please register or login to post a comment