From 0e0af703a8a1e82df0d191ab9a61fc3eb41d3444 Mon Sep 17 00:00:00 2001 From: vapao Date: Mon, 16 Mar 2020 15:35:46 +0800 Subject: [PATCH] =?UTF-8?q?F=20=E4=BF=AE=E5=A4=8D=E6=9F=90=E4=BA=9B?= =?UTF-8?q?=E6=83=85=E5=86=B5=E4=B8=8B=E8=B4=A6=E6=88=B7=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E5=88=97=E8=A1=A8=E6=9C=AA=E6=AD=A3=E5=B8=B8?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_web/src/pages/system/account/Form.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/spug_web/src/pages/system/account/Form.js b/spug_web/src/pages/system/account/Form.js index f518e93..4797ab7 100644 --- a/spug_web/src/pages/system/account/Form.js +++ b/spug_web/src/pages/system/account/Form.js @@ -4,12 +4,14 @@ * Released under the MIT License. */ import React from 'react'; -import {Modal, Form, Select, Input, message, Col} from 'antd'; +import { observer } from 'mobx-react'; +import { Modal, Form, Select, Input, message, Col } from 'antd'; import http from 'libs/http'; import store from './store'; import roleStore from '../role/store'; -import {Link} from "react-router-dom"; +import { Link } from "react-router-dom"; +@observer class ComForm extends React.Component { constructor(props) { super(props); @@ -35,10 +37,10 @@ class ComForm extends React.Component { request = http.post('/api/account/user/', formData) } request.then(() => { - message.success('操作成功'); - store.formVisible = false; - store.fetchRecords() - }, () => this.setState({loading: false})) + message.success('操作成功'); + store.formVisible = false; + store.fetchRecords() + }, () => this.setState({loading: false})) }; render() {