fix: 解决终端全屏及缩放的菜单显示问题 (#1316)

This commit is contained in:
ssongliu 2023-06-09 16:56:11 +08:00 committed by GitHub
parent cd84116a03
commit e9bdca5279
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,9 +149,11 @@ const globalStore = GlobalStore();
function toggleFullscreen() {
if (screenfull.isEnabled) {
screenfull.toggle();
globalStore.setScreenFull();
}
}
screenfull.on('change', () => {
globalStore.isFullScreen = screenfull.isFullscreen;
});
const localHostID = ref();