From 2e9a70933dc9a48aee86871fe3915f5ae9ac43ec Mon Sep 17 00:00:00 2001 From: sophie <16087569+sophie_liang@user.noreply.gitee.com> Date: Thu, 14 May 2026 09:19:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=99=BB=E5=BD=95=E9=A1=B5401=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E4=B8=8D=E5=86=8D=E8=A7=A6=E5=8F=91window.location.hr?= =?UTF-8?q?ef=3D'/'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/main.ts | 6 +++++- frontend/src/views/WorkspaceView.vue | 10 +++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/frontend/src/main.ts b/frontend/src/main.ts index b298fcf5..ef28d191 100644 --- a/frontend/src/main.ts +++ b/frontend/src/main.ts @@ -22,6 +22,10 @@ window.fetch = async (input: RequestInfo | URL, init?: RequestInit): Promise { const DEFAULT_POST_LOGIN_AGENT_ID = 16; -const handleLogin = async () => { +const handleLogin = async (event?: Event) => { + event?.preventDefault(); + event?.stopPropagation(); + if (!loginUsername.value.trim()) { showMessageDialog('warning', t('login.usernameRequired')); return; @@ -1298,11 +1301,12 @@ onMounted(async () => { -
-