File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/renderer/components/common Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 5
5
@contextmenu.prevent =" handleContextMenu"
6
6
@mouseenter =" handleMouseEnter"
7
7
@mouseleave =" handleMouseLeave"
8
+ @dblclick.stop =" playMusicEvent(item)"
8
9
>
9
10
<div v-if =" compact && index !== undefined" class =" song-item-index" :class =" { 'text-green-500': isPlaying }" >
10
11
{{ index + 1 }}
42
43
</div >
43
44
<template v-else-if =" compact " >
44
45
<div class =" song-item-content-compact-wrapper" >
45
- <div class =" w-60 flex-shrink-0 flex items-center" @dblclick = " playMusicEvent(item) " >
46
+ <div class =" w-60 flex-shrink-0 flex items-center" >
46
47
<n-ellipsis class =" song-item-content-title text-ellipsis" line-clamp =" 1" :class =" { 'text-green-500': isPlaying }" >
47
48
{{ item.name }}
48
49
</n-ellipsis >
68
69
</div >
69
70
</template >
70
71
<template v-else >
71
- <div class =" song-item-content-title" @dblclick = " playMusicEvent(item) " >
72
+ <div class =" song-item-content-title" >
72
73
<n-ellipsis class =" text-ellipsis" line-clamp =" 1" :class =" { 'text-green-500': isPlaying }" >{{ item.name }}</n-ellipsis >
73
74
</div >
74
75
<div class =" song-item-content-name" >
@@ -449,7 +450,6 @@ const playMusicEvent = async (item: SongResult) => {
449
450
if (! result ) {
450
451
throw new Error (' 播放失败' );
451
452
}
452
- playerStore .isPlay = true ;
453
453
emits (' play' , item );
454
454
} catch (error ) {
455
455
console .error (' 播放出错:' , error );
You can’t perform that action at this time.
0 commit comments