feat: 增强语言切换功能和用户播放列表显示

This commit is contained in:
alger
2025-03-22 10:30:57 +08:00
parent fa39d4ca55
commit b114cf4a33
14 changed files with 227 additions and 71 deletions
@@ -144,11 +144,14 @@ watch(modelValue, (newVal) => {
});
const loading = ref(false);
// 加载歌手信息
const previousArtistId = ref<number>();
const loadArtistInfo = async (id: number) => {
if (currentArtistId.value === id) return;
// if (currentArtistId.value === id) return;
if (previousArtistId.value === id) return;
activeTab.value = 'songs';
loading.value = true;
currentArtistId.value = id;
previousArtistId.value = id;
try {
const info = await getArtistDetail(id);
if (info.data?.data?.artist) {
@@ -8,7 +8,7 @@ import { computed } from 'vue';
import { usePlayerStore } from '@/store/modules/player';
const playerStore = usePlayerStore();
const isPlay = computed(() => playerStore.isPlay);
const isPlay = computed(() => playerStore.playMusicUrl);
defineProps({
height: {
+2 -1
View File
@@ -392,7 +392,8 @@ const toggleSelect = () => {
};
const handleArtistClick = (id: number) => {
settingsStore.currentArtistId = id;
settingsStore.setCurrentArtistId(id);
settingsStore.setShowArtistDrawer(true);
};
// 获取歌手列表(最多显示5个)