|
|
@ -1,6 +1,6 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div style="display:flex;"> |
|
|
|
<div style="display:flex;"> |
|
|
|
<div style="position:relative;width: 100%;" class="button"> |
|
|
|
<div class="left"> |
|
|
|
<codemirror |
|
|
|
<codemirror |
|
|
|
v-model="exampleData" |
|
|
|
v-model="exampleData" |
|
|
|
:value="codeid" |
|
|
|
:value="codeid" |
|
|
@ -318,7 +318,8 @@ export default { |
|
|
|
this.num = parseInt(this.after); |
|
|
|
this.num = parseInt(this.after); |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
.catch(res => { |
|
|
|
|
|
|
|
res.status == 500 && this.$message.error('检测到代码里有非法代码,请检查是否有调用系统命令。') |
|
|
|
this.loadIns.close() |
|
|
|
this.loadIns.close() |
|
|
|
}); |
|
|
|
}); |
|
|
|
clearTimeout(this.timer); |
|
|
|
clearTimeout(this.timer); |
|
|
@ -360,6 +361,10 @@ export default { |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
<style lang="scss" scoped> |
|
|
|
|
|
|
|
.left{ |
|
|
|
|
|
|
|
position: relative; |
|
|
|
|
|
|
|
width: calc(100% - 400px); |
|
|
|
|
|
|
|
} |
|
|
|
.text-wrapper { |
|
|
|
.text-wrapper { |
|
|
|
white-space: pre-wrap; |
|
|
|
white-space: pre-wrap; |
|
|
|
} |
|
|
|
} |
|
|
|