提示拦截特殊函数

master
yujialong 3 years ago
parent 77391662a8
commit b465bb670a
  1. BIN
      public/favicon.ico
  2. 9
      src/components/codemirror.vue
  3. 4
      src/utils/http.js

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

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

@ -185,9 +185,7 @@ export function post(url, params) {
);
break;
case 500:
this.$message.error(
res.data.errmessage
);
reject(res.data)
break;
case 404:
this.$message.error(

Loading…
Cancel
Save