From 2ca4c60b498acb4b8c6764b74d597d453ce91570 Mon Sep 17 00:00:00 2001 From: vapao Date: Sun, 19 Jan 2020 13:09:04 +0800 Subject: [PATCH] =?UTF-8?q?U=20=E5=8F=91=E5=B8=83=E6=9D=83=E9=99=90?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BD=93=E9=AA=8C=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_web/src/pages/login/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spug_web/src/pages/login/index.js b/spug_web/src/pages/login/index.js index 79bfe48..f4aee6c 100644 --- a/spug_web/src/pages/login/index.js +++ b/spug_web/src/pages/login/index.js @@ -9,6 +9,8 @@ import styles from './login.module.css'; import history from 'libs/history'; import {http, updatePermissions} from 'libs'; import logo from 'layout/logo.svg'; +import envStore from 'pages/config/environment/store'; +import requestStore from 'pages/deploy/request/store'; class LoginIndex extends React.Component { constructor(props) { @@ -19,6 +21,12 @@ class LoginIndex extends React.Component { } } + componentDidMount() { + envStore.records = []; + requestStore.records = []; + requestStore.deploys = [] + } + handleSubmit = () => { this.props.form.validateFields((err, formData) => { if (!err) {