diff --git a/src/components/SongList.vue b/src/components/SongList.vue index 8b7f142..14f4419 100644 --- a/src/components/SongList.vue +++ b/src/components/SongList.vue @@ -62,6 +62,7 @@ const songsInternal = ref([]) // 内部维护的歌曲列表,避 const playingSong = ref() // 当前正在试听的歌曲 const isLrcLoading = ref() // 歌词加载状态(存储歌曲 key) const isLoading = ref(false) // 通用加载状态 (用于 API 请求) +const pageSize = ref(25) // 每页大小 // --- 搜索与筛选状态 --- const searchMusicKeyword = ref('') // 歌曲名称搜索关键词 @@ -743,22 +744,16 @@ onMounted(() => { v-model:checked-row-keys="selectedColumn" :columns="columns" :data="songsComputed" - :row-key="(row: SongsInfo) => row.key" size="small" - :bordered="false" - :single-line="false" - flex-height - style="height: 60vh;" :pagination="{ - // itemCount: songsComputed.length, // 根据筛选结果分页或总数分页?取决于需求 - pageSize: 25, // 默认每页大小 - pageSizes: [10, 25, 50, 100, 200], // 可选的每页大小 + itemCount: songsInternal.length, + defaultPageSize: pageSize, + pageSizes: [10, 25, 50, 100, 200], showSizePicker: true, - showQuickJumper: true, // 显示快速跳转 - // size: 'small', // 已在 NDataTable 设置 size + showQuickJumper: true, + }" :loading="isLoading && songsComputed.length === 0" - remote striped /> diff --git a/src/views/OpenLiveLayout.vue b/src/views/OpenLiveLayout.vue index e3cd0ec..6d3ee1a 100644 --- a/src/views/OpenLiveLayout.vue +++ b/src/views/OpenLiveLayout.vue @@ -272,84 +272,62 @@ onMounted(async () => { - - - +
- - - - {{ danmakuClient.authInfo.anchor_info.uname }} - -
- -
- + + + + {{ danmakuClient.authInfo?.anchor_info?.uname }} + + +
- - - - - + - 遇到问题或有建议? + 有更多功能建议请 - 点此反馈 + 反馈 diff --git a/src/views/open_live/OpenLiveIndex.vue b/src/views/open_live/OpenLiveIndex.vue index 5c29bec..8dfbefd 100644 --- a/src/views/open_live/OpenLiveIndex.vue +++ b/src/views/open_live/OpenLiveIndex.vue @@ -13,13 +13,17 @@ const accountInfo = useAccount()