|
@@ -159,7 +159,6 @@ export default {
|
|
|
this.htmlCode = makeUpWcHtml(this.formData, type)
|
|
|
this.jsCode = makeUpWcJs(this.formData, type)
|
|
|
this.cssCode = makeUpCss(this.formData)
|
|
|
- console.log('html', this.jsCode)
|
|
|
|
|
|
loadBeautifier(btf => {
|
|
|
beautifier = btf
|
|
@@ -251,7 +250,7 @@ export default {
|
|
|
const html = vueTemplate(editorObj.html.getValue())
|
|
|
const script = vueScript(editorObj.js.getValue())
|
|
|
const css = cssStyle(editorObj.css.getValue())
|
|
|
- return beautifier.html(html + script + css, beautifierConf.html)
|
|
|
+ return beautifier.html(`${html}\n${script}\n${css}`, beautifierConf.html)
|
|
|
},
|
|
|
exportFile() {
|
|
|
this.$prompt('文件名:', '导出文件', {
|