fix: remove osdlyrics

This commit is contained in:
qier222 2021-06-10 13:50:31 +08:00
parent c7681df0e8
commit caaf62ea20
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
9 changed files with 3 additions and 391 deletions

View file

@ -95,12 +95,6 @@
<div class="right-control-buttons">
<div class="blank"></div>
<div class="container" @click.stop>
<button-icon
v-if="osdState"
:title="$t('player.osdLyrics')"
@click.native="toggleOSDLyrics"
><svg-icon icon-class="osd-lyrics"
/></button-icon>
<button-icon
:title="$t('player.nextUp')"
:class="{
@ -174,10 +168,6 @@
</template>
<script>
const electron =
process.env.IS_ELECTRON === true ? window.require('electron') : null;
const ipcRenderer =
process.env.IS_ELECTRON === true ? electron.ipcRenderer : null;
import { mapState, mapMutations, mapActions } from 'vuex';
import '@/assets/css/slider.css';
@ -211,18 +201,10 @@ export default {
? '音源来自酷我音乐'
: '';
},
osdState() {
return Boolean(ipcRenderer);
},
},
methods: {
...mapMutations(['toggleLyrics']),
...mapActions(['showToast', 'likeATrack']),
toggleOSDLyrics() {
if (ipcRenderer) {
ipcRenderer.send('toggleOSDLyrics');
}
},
goToNextTracksPage() {
if (this.player.isPersonalFM) return;
this.$route.name === 'next'