This commit is contained in:
2023-10-21 18:38:11 +08:00
parent 20a086cfb5
commit 50b435ba80
15 changed files with 706 additions and 160 deletions

View File

@@ -1,19 +1,19 @@
<script setup lang="ts">
import { useAccount } from '@/api/account';
import { useAccount } from '@/api/account'
import { SongsInfo, UserInfo } from '@/api/api-models'
import SongList from '@/components/SongList.vue'
import { NDivider } from 'naive-ui';
import { NDivider } from 'naive-ui'
const accountInfo = useAccount()
defineProps<{
userInfo: UserInfo | undefined
songs: SongsInfo[] | undefined
currentData: SongsInfo[] | undefined
}>()
</script>
<template>
<NDivider style="margin-top: 10px;"/>
<SongList v-if="songs" :songs="songs ?? []" :is-self="accountInfo?.id == userInfo?.id"/>
<NDivider/>
<NDivider style="margin-top: 10px" />
<SongList v-if="currentData" :songs="currentData ?? []" :is-self="accountInfo?.id == userInfo?.id" v-bind="$attrs" />
<NDivider />
</template>