From 74e5c577031565b1a6e7e4be0b1dc9b55182388a Mon Sep 17 00:00:00 2001 From: stark81 <849966181@qq.com> Date: Thu, 30 Nov 2023 15:31:34 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E4=BF=AE=E5=A4=8D=E4=BA=86=E5=9C=A8window?= =?UTF-8?q?=E5=92=8CLinux=E4=B8=8A=E6=A1=8C=E9=9D=A2=E6=AD=8C=E8=AF=8D?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/lyrics.vue | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/src/views/lyrics.vue b/src/views/lyrics.vue index 1d93176..7bd6b11 100644 --- a/src/views/lyrics.vue +++ b/src/views/lyrics.vue @@ -54,7 +54,6 @@ import { mapState, mapMutations } from 'vuex'; import { formatTrackTime } from '@/utils/common'; import { getLyric } from '@/api/track'; import { lyricParser } from '@/utils/lyrics'; -import { isMac } from '@/utils/platform'; export default { name: 'Lyrics', @@ -173,17 +172,15 @@ export default { currentTrack() { this.getLyric().then(data => { this.$parent.hasLyric = data; - if (isMac) { - const { ipcRenderer } = require('electron'); - const lyric = [ - { - content: this.currentTrack.name, - time: 0.0, - rawTime: '[00:00.000]', - }, - ].concat(this.lyric); - ipcRenderer.send('sendLyrics', [lyric, this.tlyric]); - } + const { ipcRenderer } = require('electron'); + const lyric = [ + { + content: this.currentTrack.name, + time: 0.0, + rawTime: '[00:00.000]', + }, + ].concat(this.lyric); + ipcRenderer.send('sendLyrics', [lyric, this.tlyric]); }); }, lyricDelay(val) {