From 44bbe8c6c076493f98654a21d30f5fd45f2d91c3 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 1 Apr 2022 14:46:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E8=A1=8C=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/codemirror.vue | 3 +++ src/config/index.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/codemirror.vue b/src/components/codemirror.vue index 6468ee2..c154184 100644 --- a/src/components/codemirror.vue +++ b/src/components/codemirror.vue @@ -448,6 +448,9 @@ export default { this.errLine = parseInt(result.substring(result.indexOf("line") + 4, result.length)) } }).catch(res => { + this.isError = false + this.runResult = '' + this.picSrcList = [] this.loadIns.close() res.status == 500 && this.$message.error('检测到代码里有非法代码,请检查是否有调用系统命令。') }) diff --git a/src/config/index.js b/src/config/index.js index e91769b..1c24bd4 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -4,7 +4,7 @@ const isHh = location.host.includes('10.196.131.73') //是否是河海版本 const isBeta = process.env.NODE_ENV === 'development' || location.host.includes('39.108.250.202') //是否是职站测试 let host = location.origin + ':9000/' -if (process.env.NODE_ENV === 'development') host = 'http://39.108.250.202:9000' +if (process.env.NODE_ENV === 'development') host = 'http://192.168.31.151:9000' /** * python8个系统的id和名称 * id即systemId,从cookie里取