Skip to content

Commit

Permalink
feat: 测试结果页使用object而非string
Browse files Browse the repository at this point in the history
  • Loading branch information
wuranxu committed Jan 25, 2024
1 parent b87bd45 commit b115b26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/TestCase/TestResult.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export default ({response, caseName, width, modal, setModal, single = true}) =>
<JSONAceEditor
setEditor={setEditor}
readOnly={true}
value={response[name].response ? response[name].response : ''}
value={JSON.stringify(response[name]?.response || "null", null, 2)}
height="80vh"
/>
</TabPane>
Expand Down Expand Up @@ -314,7 +314,7 @@ export default ({response, caseName, width, modal, setModal, single = true}) =>
<JSONAceEditor
readOnly={true}
setEditor={setEditor}
value={response.response ? response.response : ''}
value={JSON.stringify(response[name]?.response || "null", null, 2)}
height="80vh"
/>
</TabPane>
Expand Down

0 comments on commit b115b26

Please sign in to comment.