diff --git a/src/components/codemirror.vue b/src/components/codemirror.vue index dc2d8d8..3d011d4 100644 --- a/src/components/codemirror.vue +++ b/src/components/codemirror.vue @@ -310,6 +310,7 @@ export default { const result = data.runResult this.$emit('cache') // 每次运行代码都要把代码传给后端做缓存 this.loadIns.close() + this.picSrcList = [] if (photo) this.picSrcList = photo.split(',') this.$emit('update:codeId', res.codeId) // 更新coddeId this.$emit('update:answer', result) // 更新运行结果