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里取