F fix bug

pull/22/head
vapao 2020-01-08 21:54:43 +08:00
parent 3f4ae0819d
commit 8ef0c905f8
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ class JSONView extends React.Component {
http.post('/api/config/parse/json/', formData)
.then(res => {
message.success('保存成功');
this.updateValue()
store.fetchRecords().then(this.updateValue)
})
.finally(() => this.setState({loading: false}))
} catch (err) {

View File

@ -36,7 +36,7 @@ class TextView extends React.Component {
http.post('/api/config/parse/text/', formData)
.then(res => {
message.success('保存成功');
this.updateValue()
store.fetchRecords().then(this.updateValue)
})
.finally(() => this.setState({loading: false}))
};