fix: resolve resetting problem

修复重置问题
This commit is contained in:
yanglbme 2020-01-06 20:51:59 +08:00
parent 305cc4af27
commit d9a170cf87

View File

@ -246,10 +246,10 @@ let app = new Vue({
this.editor.setValue(DEFAULT_CONTENT); this.editor.setValue(DEFAULT_CONTENT);
this.cssEditor.setValue(DEFAULT_CSS_CONTENT); this.cssEditor.setValue(DEFAULT_CSS_CONTENT);
this.editor.focus(); this.editor.focus();
this.currentFont = this.builtinFonts[0].value;
this.currentColor = this.colorOption[1].value;
this.currentSize = this.sizeOption[2].value;
this.status = '1'; this.status = '1';
this.fontChanged(this.builtinFonts[0].value);
this.colorChanged(this.colorOption[1].value);
this.sizeChanged(this.sizeOption[2].value);
this.cssChanged() this.cssChanged()
}).catch(() => { }).catch(() => {
this.editor.focus(); this.editor.focus();