From 860fe91725865f202c2e282fe956647a6d4674f8 Mon Sep 17 00:00:00 2001 From: WindSpirit Date: Fri, 4 Jun 2021 21:09:34 +0800 Subject: [PATCH] fix: to and table key Signed-off-by: WindSpirit --- web/src/UrlTable.js | 2 +- web/src/auth/LoginPage.js | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/web/src/UrlTable.js b/web/src/UrlTable.js index 661f3372..46cc6c3a 100644 --- a/web/src/UrlTable.js +++ b/web/src/UrlTable.js @@ -95,7 +95,7 @@ class UrlTable extends React.Component { ]; return ( - ({id: row}))} size="middle" bordered pagination={{pageSize: 100}} +
({id: row, index: i}))} size="middle" bordered pagination={{pageSize: 100}} title={() => (
{this.props.title}     diff --git a/web/src/auth/LoginPage.js b/web/src/auth/LoginPage.js index 33932f1a..25038b89 100644 --- a/web/src/auth/LoginPage.js +++ b/web/src/auth/LoginPage.js @@ -194,13 +194,11 @@ class LoginPage extends React.Component { {i18next.t("login:Auto login")} -
{ + { Setting.goToForget(this, application); }}> - - {i18next.t("login:Forgot password?")} - -
+ {i18next.t("login:Forgot password?")} +
) } @@ -257,11 +255,11 @@ class LoginPage extends React.Component {
{i18next.t("login:No account yet?")}  - { + { Setting.goToSignup(this, application); }}> {i18next.t("login:sign up now")} - +
)