diff --git a/src/components/BsCommentSubmit.vue b/src/components/BsCommentSubmit.vue index 7d24e6f..de2aa29 100644 --- a/src/components/BsCommentSubmit.vue +++ b/src/components/BsCommentSubmit.vue @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-06-20 16:36:14 * @LastEditors: ch - * @LastEditTime: 2022-06-29 19:58:37 + * @LastEditTime: 2022-06-30 17:20:40 * @Description: file content --> @@ -84,7 +86,12 @@ export default { } const {error, result} = await ApiPostComment(data); if(!HandleApiError(error)){ - this.$emit('submit',result); + this.commentContent = ''; + this.fileList = []; + this.$nextTick(()=>{ + this.$emit('submit',{}); + }) + } }, async handleUpdateImg(val){ diff --git a/src/pages/order/comment/index/index.vue b/src/pages/order/comment/index/index.vue index 2a25d9b..5462e62 100644 --- a/src/pages/order/comment/index/index.vue +++ b/src/pages/order/comment/index/index.vue @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-06-20 14:55:54 * @LastEditors: ch - * @LastEditTime: 2022-06-30 14:15:35 + * @LastEditTime: 2022-06-30 17:14:24 * @Description: file content -->