diff --git a/spug_web/src/pages/config/setting/JSONView.js b/spug_web/src/pages/config/setting/JSONView.js index e041610..f207530 100644 --- a/spug_web/src/pages/config/setting/JSONView.js +++ b/spug_web/src/pages/config/setting/JSONView.js @@ -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) { diff --git a/spug_web/src/pages/config/setting/TextView.js b/spug_web/src/pages/config/setting/TextView.js index 887f872..e659cdc 100644 --- a/spug_web/src/pages/config/setting/TextView.js +++ b/spug_web/src/pages/config/setting/TextView.js @@ -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})) };