From e889e8f4f60fea54716f62e550eb9895bb0a4cf8 Mon Sep 17 00:00:00 2001 From: wenlele Date: Mon, 9 Jan 2023 11:21:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=91=E6=B5=8B=E9=A1=B9=E5=85=A8=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/auth/index.js | 4 ++-- web/client/src/sections/facility/containers/monitor.jsx | 4 ++-- web/client/src/sections/service/components/pushModal.jsx | 5 +++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/api/app/lib/controllers/auth/index.js b/api/app/lib/controllers/auth/index.js index 3ce02bb..70b5799 100644 --- a/api/app/lib/controllers/auth/index.js +++ b/api/app/lib/controllers/auth/index.js @@ -88,8 +88,8 @@ async function login (ctx, next) { // await transaction.commit(); } catch (error) { // await transaction.rollback(); - ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`); - ctx.status = 400; + ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`) + ctx.status = 400 let message = typeof error == 'string' ? error : error.response.body.message || "登录失败" if (message == '账号或密码错误') { diff --git a/web/client/src/sections/facility/containers/monitor.jsx b/web/client/src/sections/facility/containers/monitor.jsx index 73628d6..53cb694 100644 --- a/web/client/src/sections/facility/containers/monitor.jsx +++ b/web/client/src/sections/facility/containers/monitor.jsx @@ -28,14 +28,14 @@ const Server = (props) => { backgroundRepeat: 'no-repeat', }}> 进入Grafana
点击可跳转服务器监控网站Grafana
- {/*