浏览代码

代码优化

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
         }