移除无用代码

pull/277/head
lyswhut 2020-06-26 01:12:08 +08:00
parent b02d32929c
commit ffc3300fe4
6 changed files with 4 additions and 15 deletions

View File

@ -22,7 +22,6 @@ exports.winLyric = {
name: 'winLyric',
create: 'create',
close: 'close',
inited: 'inited',
}
exports.hotKey = {

View File

@ -10,10 +10,6 @@ class WinLyric extends EventEmitter {
close() {
this.emit(WIN_LYRIC_EVENT_NAME.close)
}
inited() {
this.emit(WIN_LYRIC_EVENT_NAME.inited)
}
}
module.exports = WinLyric

View File

@ -38,7 +38,6 @@ global.lx_event.common.on(COMMON_EVENT_NAME.config, name => {
if (WIN_LYRIC_EVENT_NAME.name === name) return
setLrcConfig(false)
})
// global.lx_event.winLyric.on(WIN_LYRIC_EVENT_NAME.inited, () => setLrcConfig(true))
global.lx_event.mainWindow.on(MAIN_WINDOW_EVENT_NAME.setLyricInfo, info => {
if (!global.modules.lyricWindow) return

View File

@ -1,5 +1,5 @@
<template lang="pug">
#container(v-if="isProd && !isNt" :class="[theme, nd ? 'nd' : '']" @mouseenter="enableIgnoreMouseEvents" @mouseleave="dieableIgnoreMouseEvents")
#container(v-if="isProd && !isNt" :class="theme" @mouseenter="enableIgnoreMouseEvents" @mouseleave="dieableIgnoreMouseEvents")
core-aside#left
#right
core-toolbar#toolbar
@ -9,7 +9,7 @@
material-xm-verify-modal(v-show="globalObj.xm.isShowVerify" :show="globalObj.xm.isShowVerify" :bg-close="false" @close="handleXMVerifyModalClose")
material-version-modal(v-show="version.showModal")
material-pact-modal(v-show="!setting.isAgreePact || globalObj.isShowPact")
#container(v-else :class="[theme, nd ? 'nd' : '']")
#container(v-else :class="theme")
core-aside#left
#right
core-toolbar#toolbar
@ -58,7 +58,6 @@ export default {
}
},
computed: {
...mapGetters('player', ['isShowPlayerDetail']),
...mapGetters(['setting', 'theme', 'version', 'windowSizeActive']),
...mapGetters('list', ['defaultList', 'loveList', 'userList']),
...mapGetters('download', {
@ -68,9 +67,6 @@ export default {
...mapGetters('search', {
searchHistoryList: 'historyList',
}),
nd() {
return this.isShowPlayerDetail
},
},
created() {
this.saveDefaultList = throttle(n => {

View File

@ -62,7 +62,7 @@ rendererOn(NAMES.mainWindow.focus, () => {
eventHub.$emit(baseName.focus)
})
rendererOn(NAMES.mainWindow.key_down, (event, { type, key }) => {
console.log(appHotKeyConfig.global.keys[key])
// console.log(appHotKeyConfig.global.keys[key])
if (appHotKeyConfig.global.keys[key]) {
window.eventHub.$emit(appHotKeyConfig.global.keys[key].action)
}

View File

@ -179,12 +179,11 @@ const mutations = {
total += source.total
limit += source.limit
}
list = handleSortList(list, state.text)
state.allPage = Math.max(...pages)
state.total = total
state.limit = limit
state.page = page
state.list = list
state.list = handleSortList(list, state.text)
},
clearList(state) {
for (const source of Object.keys(state.sourceList)) {