mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-05-17 02:07:29 +08:00
✨ feat: 增强语言切换功能和用户播放列表显示
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -392,7 +392,8 @@ const toggleSelect = () => {
|
||||
};
|
||||
|
||||
const handleArtistClick = (id: number) => {
|
||||
settingsStore.currentArtistId = id;
|
||||
settingsStore.setCurrentArtistId(id);
|
||||
settingsStore.setShowArtistDrawer(true);
|
||||
};
|
||||
|
||||
// 获取歌手列表(最多显示5个)
|
||||
|
||||
Reference in New Issue
Block a user