修复初始化时出现undefined的bug
parent
4d9e843a4c
commit
8c3427395c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue