修复初始化时出现undefined的bug
parent
4d9e843a4c
commit
8c3427395c
|
@ -55,9 +55,9 @@ export default {
|
|||
} catch (e) {}
|
||||
}
|
||||
|
||||
this.html = code.html
|
||||
this.js = code.js
|
||||
this.css = code.css
|
||||
this.html = code.html || ''
|
||||
this.js = code.js || ''
|
||||
this.css = code.css || ''
|
||||
this.updatePreview()
|
||||
}
|
||||
this.$needUpdate = true
|
||||
|
|
Loading…
Reference in New Issue