运行修复

dev_2022-03-03
yujialong 3 years ago
parent f2555c50af
commit 44bbe8c6c0
  1. 3
      src/components/codemirror.vue
  2. 2
      src/config/index.js

@ -448,6 +448,9 @@ export default {
this.errLine = parseInt(result.substring(result.indexOf("line") + 4, result.length)) this.errLine = parseInt(result.substring(result.indexOf("line") + 4, result.length))
} }
}).catch(res => { }).catch(res => {
this.isError = false
this.runResult = ''
this.picSrcList = []
this.loadIns.close() this.loadIns.close()
res.status == 500 && this.$message.error('检测到代码里有非法代码,请检查是否有调用系统命令。') res.status == 500 && this.$message.error('检测到代码里有非法代码,请检查是否有调用系统命令。')
}) })

@ -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') //是否是职站测试 const isBeta = process.env.NODE_ENV === 'development' || location.host.includes('39.108.250.202') //是否是职站测试
let host = location.origin + ':9000/' 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和名称 * python8个系统的id和名称
* id即systemId从cookie里取 * id即systemId从cookie里取

Loading…
Cancel
Save