소스 검색

代码优化

mxd 3 년 전
부모
커밋
61e3a8ef7b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      magic-editor/src/console/src/components/layout/magic-run.vue

+ 1 - 1
magic-editor/src/console/src/components/layout/magic-run.vue

@@ -102,7 +102,7 @@ export default {
       this.layout()
     },
     updateResponseBody(bodyStr) {
-        if (['{}','[]'].indexOf(bodyStr.replace(/\s/g,"")) > -1) {
+        if (!bodyStr || ['{}','[]'].indexOf(bodyStr.replace(/\s/g,"")) > -1) {
           this.responseBody = []
           return false
         }