修复初始化时出现undefined的bug

master
yutent 2023-04-27 11:57:17 +08:00
parent 4d9e843a4c
commit 8c3427395c
1 changed files with 3 additions and 3 deletions

View File

@ -55,9 +55,9 @@ export default {
} catch (e) {} } catch (e) {}
} }
this.html = code.html this.html = code.html || ''
this.js = code.js this.js = code.js || ''
this.css = code.css this.css = code.css || ''
this.updatePreview() this.updatePreview()
} }
this.$needUpdate = true this.$needUpdate = true