修改bug,切换详情删除输入框内容

This commit is contained in:
DESKTOP-RQ919RC\Pc
2025-04-30 17:02:58 +08:00
parent 39475bc8bb
commit 4c30676c39
12 changed files with 53 additions and 49 deletions

View File

@@ -367,6 +367,9 @@ const getComment = () => {
let picture = ref({});
let inputTextarea = ref("");
// 监听 detailsToken 的变化
watch(
detailsToken,
@@ -378,6 +381,7 @@ watch(
commentTotalCount.value = 0;
commentCount.value = 0;
alreadyCommentIdList = [];
inputTextarea.value = "";
getComment();
}
},
@@ -533,7 +537,6 @@ const handleInputPaste = (event, index, ii) => {
}
};
let inputTextarea = ref("");
// 提交回答-评论
const submitAnswerComments = (index, i) => {