Skip to content

Commit

Permalink
fix: 修正代码不执行的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiuChen committed Jan 22, 2024
1 parent 183b94c commit bdf0e64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/store/useCodeStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@ export const useCodeStore = defineStore('CodeSrore', {
},

execCode(code?: string) {
if (!code || this.code) {
code = this.code

if (!code) {
return
}

code = this.code

const handleConsole = (stdout: any[], stderr: any[]) => {
const id = uniqueId()
const timeStamp = new Date().getTime()
Expand Down

0 comments on commit bdf0e64

Please sign in to comment.