Skip to content

Commit 8988cdb

Browse files
committed
feat: 在音乐列表页面中添加 Electron 环境判断,优化多选下载操作的显示逻辑
1 parent 1221101 commit 8988cdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderer/views/music/MusicListPage.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
</n-tooltip>
3939

4040
<!-- 多选/下载操作 -->
41-
<div v-if="filteredSongs.length > 0" class="flex items-center gap-2">
41+
<div v-if="filteredSongs.length > 0 && isElectron" class="flex items-center gap-2">
4242
<n-tooltip v-if="!isSelecting" placement="bottom" trigger="hover">
4343
<template #trigger>
4444
<div class="action-button hover-green" @click="startSelect">
@@ -210,7 +210,7 @@ import SongItem from '@/components/common/SongItem.vue';
210210
import PlayBottom from '@/components/common/PlayBottom.vue';
211211
import { useMusicStore, usePlayerStore } from '@/store';
212212
import { SongResult } from '@/type/music';
213-
import { getImgUrl, isMobile, setAnimationClass } from '@/utils';
213+
import { getImgUrl, isElectron, isMobile, setAnimationClass } from '@/utils';
214214
import { useDownload } from '@/hooks/useDownload';
215215
216216
const { t } = useI18n();

0 commit comments

Comments
 (0)