调整 onsize 事件写法

This commit is contained in:
Hooray Hu 2024-03-05 09:27:37 +08:00
parent 006cf16f41
commit 80235a16fb

View File

@ -46,9 +46,9 @@ watch([
onMounted(() => {
settingsStore.setMode(document.documentElement.clientWidth)
window.onresize = () => {
window.addEventListener('resize', () => {
settingsStore.setMode(document.documentElement.clientWidth)
}
})
hotkeys('alt+i', () => {
eventBus.emit('global-system-info-toggle')
})