From 8ef0c905f8691079f907e770488e34943017fc0d Mon Sep 17 00:00:00 2001 From: vapao Date: Wed, 8 Jan 2020 21:54:43 +0800 Subject: [PATCH] F fix bug --- spug_web/src/pages/config/setting/JSONView.js | 2 +- spug_web/src/pages/config/setting/TextView.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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})) };