From e9d2152e32e13b373a6d6fa1ae807df424459dd7 Mon Sep 17 00:00:00 2001 From: zhuyue Date: Thu, 2 Sep 2021 18:24:29 +0800 Subject: [PATCH] fix: Fix spelling & remove link 1. fix spelling 2. remove link at login page Change-Id: I9210891c3d00ca23a67cf300ab4d44cbe1176505 --- src/layouts/Auth/index.jsx | 5 +---- src/resources/instance.jsx | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/layouts/Auth/index.jsx b/src/layouts/Auth/index.jsx index c0a1e58a..0f1e121c 100644 --- a/src/layouts/Auth/index.jsx +++ b/src/layouts/Auth/index.jsx @@ -16,7 +16,6 @@ import React, { Component } from 'react'; import { inject, observer } from 'mobx-react'; import renderRoutes from 'utils/RouterConfig'; import SelectLang from 'components/SelectLang'; -import { Link } from 'react-router-dom'; import logo from 'src/asset/image/logo.png'; // import loginImage from 'src/asset/image/login.png'; @@ -48,9 +47,7 @@ class AuthLayout extends Component {
- - logo - + logo
{renderRoutes(this.routes)} diff --git a/src/resources/instance.jsx b/src/resources/instance.jsx index a58dbca9..e91d000c 100644 --- a/src/resources/instance.jsx +++ b/src/resources/instance.jsx @@ -218,7 +218,7 @@ const passwordAndUserData = '\n' + '--===============2309984059743762475==--'; -const onlyPasword = +const onlyPassword = 'Content-Type: multipart/mixed; boundary="===============2309984059743762475==" \n' + 'MIME-Version: 1.0\n' + '\n' + @@ -264,7 +264,7 @@ export const getUserData = (password, userData) => { return str.replace(/USER_DATA/g, userData); } if (password) { - return onlyPasword.replace(/USER_PASSWORD/g, password); + return onlyPassword.replace(/USER_PASSWORD/g, password); } return onlyUserData.replace(/USER_DATA/g, userData); };