From 1a44f48fad858a43b3dfba6cb04300649521b6fc Mon Sep 17 00:00:00 2001 From: John Bro <42930107+john1298308460@users.noreply.github.com> Date: Thu, 10 Oct 2024 18:55:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=A5=E5=BF=97=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E6=94=B9=E6=88=90=E7=BD=91=E9=A1=B5=E5=85=A8?= =?UTF-8?q?=E5=B1=8F=E4=BB=A5=E5=8F=8A=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= =?UTF-8?q?=20(#6682)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs #5873 --- frontend/src/components/compose-log/index.vue | 10 ++++++---- frontend/src/lang/modules/en.ts | 4 ++-- frontend/src/lang/modules/tw.ts | 4 ++-- frontend/src/lang/modules/zh.ts | 4 ++-- frontend/src/views/container/container/log/index.vue | 7 +++---- .../views/host/file-management/code-editor/index.vue | 1 + frontend/src/views/toolbox/supervisor/file/index.vue | 7 +++---- 7 files changed, 19 insertions(+), 18 deletions(-) diff --git a/frontend/src/components/compose-log/index.vue b/frontend/src/components/compose-log/index.vue index 25c67d79f..5f2edda38 100644 --- a/frontend/src/components/compose-log/index.vue +++ b/frontend/src/components/compose-log/index.vue @@ -95,15 +95,14 @@ const logSearch = reactive({ const handleClose = () => { terminalSocket.value?.send('close conn'); open.value = false; + globalStore.isFullScreen = false; }; function toggleFullscreen() { - if (screenfull.isEnabled) { - screenfull.toggle(); - } + globalStore.isFullScreen = !globalStore.isFullScreen; } const loadTooltip = () => { - return i18n.global.t('commons.button.' + (screenfull.isFullscreen ? 'quitFullscreen' : 'fullscreen')); + return i18n.global.t('commons.button.' + (globalStore.isFullScreen ? 'quitFullscreen' : 'fullscreen')); }; watch(logVisible, (val) => { @@ -214,6 +213,9 @@ defineExpose({