列表item加回答数量
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user