From 6c63990653a8ce363c37496e3407cbc18dd3004c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Wed, 8 May 2024 21:12:03 +0800 Subject: [PATCH] fix: redirect html --- src/webui/src/api/Auth.ts | 2 +- static/index.html | 57 ++++++++++++++++++++++++++++++++++----- 2 files changed, 52 insertions(+), 7 deletions(-) diff --git a/src/webui/src/api/Auth.ts b/src/webui/src/api/Auth.ts index c39ae360..0992e50d 100644 --- a/src/webui/src/api/Auth.ts +++ b/src/webui/src/api/Auth.ts @@ -57,12 +57,12 @@ export const checkHandler: RequestHandler = async (req, res) => { code: 0, message: 'success' }); + return; } catch (e) { res.json({ code: -1, message: 'failed' }); } - return; }; diff --git a/static/index.html b/static/index.html index 79d93995..faf2893d 100644 --- a/static/index.html +++ b/static/index.html @@ -9,13 +9,58 @@