File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 37
37
{{ t('comp.musicList.addToPlaylist') }}
38
38
</n-tooltip >
39
39
<!-- 布局切换按钮 -->
40
- <div class =" layout-toggle" >
40
+ <div class =" layout-toggle" v-if = " !isMobile " >
41
41
<n-tooltip placement =" bottom" trigger =" hover" >
42
42
<template #trigger >
43
43
<div class =" toggle-button hover-green" @click =" toggleLayout" >
@@ -165,7 +165,7 @@ import SongItem from '@/components/common/SongItem.vue';
165
165
import PlayBottom from ' @/components/common/PlayBottom.vue' ;
166
166
import { useMusicStore , usePlayerStore } from ' @/store' ;
167
167
import { SongResult } from ' @/type/music' ;
168
- import { getImgUrl , setAnimationClass } from ' @/utils' ;
168
+ import { getImgUrl , isMobile , setAnimationClass } from ' @/utils' ;
169
169
170
170
const { t } = useI18n ();
171
171
const route = useRoute ();
@@ -196,7 +196,7 @@ const isFullPlaylistLoaded = ref(false); // 标记完整播放列表是否已加
196
196
197
197
// 添加搜索相关的状态和方法
198
198
const isSearchVisible = ref (false );
199
- const isCompactLayout = ref (localStorage .getItem (' musicListLayout' ) === ' compact' ); // 默认使用紧凑布局
199
+ const isCompactLayout = ref (isMobile . value ? false : localStorage .getItem (' musicListLayout' ) === ' compact' ); // 默认使用紧凑布局
200
200
201
201
const showSearch = () => {
202
202
isSearchVisible .value = true ;
You can’t perform that action at this time.
0 commit comments