mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/lyswhut/lx-music-desktop.git
synced 2026-09-20 08:04:00 +08:00
修复切换全屏问题
This commit is contained in:
@@ -28,6 +28,7 @@ const handle_open_devtools = event => {
|
||||
rendererSend(NAMES.mainWindow.open_dev_tools)
|
||||
}
|
||||
const handle_fullscreen = event => {
|
||||
if (event.event.repeat) return
|
||||
rendererInvoke(NAMES.mainWindow.fullscreen, !isFullscreen.value).then(fullscreen => {
|
||||
isFullscreen.value = fullscreen
|
||||
})
|
||||
|
||||
@@ -201,11 +201,14 @@ export default {
|
||||
}),
|
||||
listenEvent() {
|
||||
window.eventHub.on('key_backspace_down', this.handle_key_backspace_down)
|
||||
window.addEventListener('resize', this.setTagListWidth)
|
||||
window.addEventListener('resize', this.handleSetTagWidth)
|
||||
},
|
||||
unlistenEvent() {
|
||||
window.eventHub.off('key_backspace_down', this.handle_key_backspace_down)
|
||||
window.removeEventListener('resize', this.setTagListWidth)
|
||||
window.removeEventListener('resize', this.handleSetTagWidth)
|
||||
},
|
||||
handleSetTagWidth() {
|
||||
setTimeout(this.setTagListWidth)
|
||||
},
|
||||
handle_key_backspace_down({ event }) {
|
||||
if (!this.isVisibleListDetail ||
|
||||
|
||||
Reference in New Issue
Block a user