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)
|
http.post('/api/config/parse/json/', formData)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
message.success('保存成功');
|
message.success('保存成功');
|
||||||
this.updateValue()
|
store.fetchRecords().then(this.updateValue)
|
||||||
})
|
})
|
||||||
.finally(() => this.setState({loading: false}))
|
.finally(() => this.setState({loading: false}))
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
|
@ -36,7 +36,7 @@ class TextView extends React.Component {
|
||||||
http.post('/api/config/parse/text/', formData)
|
http.post('/api/config/parse/text/', formData)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
message.success('保存成功');
|
message.success('保存成功');
|
||||||
this.updateValue()
|
store.fetchRecords().then(this.updateValue)
|
||||||
})
|
})
|
||||||
.finally(() => this.setState({loading: false}))
|
.finally(() => this.setState({loading: false}))
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue