Browse Source

fix: jsonparse

gaozhan 5 years ago
parent
commit
6187f60f97
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/pages/fengkong/features/group/edit/$name.js

+ 1 - 1
src/pages/fengkong/features/group/edit/$name.js

@@ -65,7 +65,7 @@ class Add extends React.PureComponent {
     }
     }
     test({
     test({
       group: this.state.name,
       group: this.state.name,
-      input: this.state.testContent
+      input: JSON.parse(this.state.testContent)
     }).then(res => {
     }).then(res => {
       if (res.code === 0) {
       if (res.code === 0) {
         this.setState({ testResult: JSON.stringify(res) })
         this.setState({ testResult: JSON.stringify(res) })