修改bug,切换详情删除输入框内容
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user