移除无用代码

This commit is contained in:
lyswhut
2020-06-26 01:12:08 +08:00
parent b02d32929c
commit ffc3300fe4
6 changed files with 4 additions and 15 deletions
+2 -6
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 => {
+1 -1
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)
}
+1 -2
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)) {