fix live detail loading

This commit is contained in:
2023-12-22 15:37:26 +08:00
parent 0c62ad8685
commit ee93182b54
9 changed files with 56 additions and 44 deletions

View File

@@ -34,6 +34,7 @@ import {
NSwitch,
NTag,
NTooltip,
NVirtualList,
} from 'naive-ui'
import { computed, nextTick, onMounted, ref, watch } from 'vue'
import LiveInfoContainer from './LiveInfoContainer.vue'
@@ -326,16 +327,6 @@ onMounted(() => {
<NModal v-model:show="showModal" @after-leave="userDanmakus = undefined" preset="card" :style="'width: 600px;max-width: 90vw;max-height: 90vh;'" content-style="overflow-y: auto">
<template #header>
{{ userDanmakus?.[0].uName }}
<NPopover>
<template #trigger>
<NButton text @click="ToUserSpace(userDanmakus?.[0].uId ?? 0)">
<template #icon>
<NIcon :component="Search24Filled" />
</template>
</NButton>
</template>
查询发言记录
</NPopover>
</template>
<template #header-extra>
<NSwitch v-model:value="modalShowTools" size="small">

View File

@@ -118,7 +118,7 @@ watch(
<NNumberAnimation :from="0" :to="live.totalIncomeWithGuard" show-separator />
</span>
</template>
<NNumberAnimation :from="0" :to="live.totalIncome" show-separator />
{{ live.totalIncome }}
</NTooltip>
</NStatistic>
</transition>