From e9bdca5279d31bd3a44643bc8382df9a7456740e Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Fri, 9 Jun 2023 16:56:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E7=BB=88=E7=AB=AF?= =?UTF-8?q?=E5=85=A8=E5=B1=8F=E5=8F=8A=E7=BC=A9=E6=94=BE=E7=9A=84=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98=20(#1316)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/host/terminal/terminal/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/host/terminal/terminal/index.vue b/frontend/src/views/host/terminal/terminal/index.vue index 401602359..83a5b2dc7 100644 --- a/frontend/src/views/host/terminal/terminal/index.vue +++ b/frontend/src/views/host/terminal/terminal/index.vue @@ -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();