From d9a170cf87215d52e4e1ae9e8cf38559eae3b789 Mon Sep 17 00:00:00 2001 From: yanglbme Date: Mon, 6 Jan 2020 20:51:59 +0800 Subject: [PATCH] fix: resolve resetting problem MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复重置问题 --- assets/scripts/editor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/scripts/editor.js b/assets/scripts/editor.js index 47677f5..a325820 100644 --- a/assets/scripts/editor.js +++ b/assets/scripts/editor.js @@ -246,10 +246,10 @@ let app = new Vue({ this.editor.setValue(DEFAULT_CONTENT); this.cssEditor.setValue(DEFAULT_CSS_CONTENT); 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.fontChanged(this.builtinFonts[0].value); + this.colorChanged(this.colorOption[1].value); + this.sizeChanged(this.sizeOption[2].value); this.cssChanged() }).catch(() => { this.editor.focus();