瀏覽代碼

修改bug

lxr 4 天之前
父節點
當前提交
740b48af50
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/views/dynamicManagement/index.vue

+ 4 - 2
src/views/dynamicManagement/index.vue

@@ -648,7 +648,6 @@ const handleVideoPlay = (currentIndex: number) => {
     }
   });
 };
-
 // 举报对话框相关
 const reportDialogVisible = ref(false);
 const reportSubmitting = ref(false);
@@ -1016,6 +1015,10 @@ const handleShowComments = () => {
   if (!currentDetail.value) return;
   commentDrawerVisible.value = true;
   currentCommentDynamicId.value = currentDetail.value.id;
+  // 清空评论输入框
+  commentInput.value = "";
+  // 清空回复评论
+  replyingComment.value = null;
 };
 
 // 加载评论列表
@@ -1554,7 +1557,6 @@ watch(
     }
   }
 );
-
 // 拉黑用户(点击菜单项)
 const handleBlockUserClick = () => {
   handleBlockUser(false);