From 2b6120423325134414d03c00bc588fe994db205c Mon Sep 17 00:00:00 2001 From: 14kk <34759162+14kk@users.noreply.github.com> Date: Fri, 29 Oct 2021 23:26:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=94=99=E8=AF=AF=E6=96=87?= =?UTF-8?q?=E5=AD=97=20(#809)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 14K <9112790+the14k@user.noreply.gitee.com> --- INSTALL.md | 2 +- back/services/user.ts | 8 ++++---- src/pages/setting/index.tsx | 2 +- src/pages/setting/loginLog.tsx | 10 +++++----- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 4bb8e14b..4c94d16d 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -59,7 +59,7 @@ cat查看之后返回的结果类似如下字段 # admin即为登录名;Xb-ZYP526wmg4_h6q1WqIO为登录密码 ``` -输入此处记录的`username`及`password`,即可成功登陆qinglong面板,登陆后即可正常使用 +输入此处记录的`username`及`password`,即可成功登录qinglong面板,登录后即可正常使用 ## 拉取脚本 ```bash diff --git a/back/services/user.ts b/back/services/user.ts index 22b55e33..91f0b2d7 100644 --- a/back/services/user.ts +++ b/back/services/user.ts @@ -116,10 +116,10 @@ export default class UserService { isTwoFactorChecking: false, }); await this.notificationService.notify( - '登陆通知', + '登录通知', `你于${new Date(timestamp).toLocaleString()}在 ${address} ${ req.platform - }端 登陆成功,ip地址 ${ip}`, + }端 登录成功,ip地址 ${ip}`, ); await this.getLoginLog(); await this.insertDb({ @@ -145,10 +145,10 @@ export default class UserService { platform: req.platform, }); await this.notificationService.notify( - '登陆通知', + '登录通知', `你于${new Date(timestamp).toLocaleString()}在 ${address} ${ req.platform - }端 登陆失败,ip地址 ${ip}`, + }端 登录失败,ip地址 ${ip}`, ); await this.getLoginLog(); await this.insertDb({ diff --git a/src/pages/setting/index.tsx b/src/pages/setting/index.tsx index efacb1ae..badfd4a4 100644 --- a/src/pages/setting/index.tsx +++ b/src/pages/setting/index.tsx @@ -348,7 +348,7 @@ const Setting = ({ - + diff --git a/src/pages/setting/loginLog.tsx b/src/pages/setting/loginLog.tsx index b7cd1c59..506ef768 100644 --- a/src/pages/setting/loginLog.tsx +++ b/src/pages/setting/loginLog.tsx @@ -25,7 +25,7 @@ const columns = [ }, }, { - title: '登陆时间', + title: '登录时间', dataIndex: 'timestamp', key: 'timestamp', align: 'center' as const, @@ -34,25 +34,25 @@ const columns = [ }, }, { - title: '登陆地址', + title: '登录地址', dataIndex: 'address', key: 'address', align: 'center' as const, }, { - title: '登陆IP', + title: '登录IP', dataIndex: 'ip', key: 'ip', align: 'center' as const, }, { - title: '登陆设备', + title: '登录设备', dataIndex: 'platform', key: 'platform', align: 'center' as const, }, { - title: '登陆状态', + title: '登录状态', dataIndex: 'status', key: 'status', align: 'center' as const,