refactor: 调整 onsize 事件写法

This commit is contained in:
Hooray Hu 2024-03-05 09:28:21 +08:00
parent 26274fdb8e
commit e802354cab

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')
})