列表item加回答数量

This commit is contained in:
A1300399510
2025-02-07 18:35:35 +08:00
parent 882d44344d
commit e04ff556db
23 changed files with 212 additions and 163 deletions

View File

@@ -182,7 +182,6 @@
</div>
</template>
<script setup>
import { tr } from "element-plus/es/locale"
const props = defineProps({
token: String,
@@ -191,6 +190,7 @@ const props = defineProps({
onMounted(() => {
// getComment()
})
const emit = defineEmits();
const $ajax = inject("$ajax")
const $ajaxGET = inject("$ajaxGET")
@@ -522,6 +522,8 @@ const submitAnswerComments = (index, i) => {
commentTotalCount.value = data.count || 0
emit('updateAnswers', data.count)
// targetAnswerList[index]["commentnum"] = data["count"]
closeAnswerCommentsChild()