mirror of https://github.com/openspug/spug
F fix bug
parent
3f4ae0819d
commit
8ef0c905f8
|
@ -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) {
|
||||
|
|
|
@ -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}))
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue