Skip to content

Commit d9a170c

Browse files
committed
fix: resolve resetting problem
修复重置问题
1 parent 305cc4a commit d9a170c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

assets/scripts/editor.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,10 @@ let app = new Vue({
246246
this.editor.setValue(DEFAULT_CONTENT);
247247
this.cssEditor.setValue(DEFAULT_CSS_CONTENT);
248248
this.editor.focus();
249-
this.currentFont = this.builtinFonts[0].value;
250-
this.currentColor = this.colorOption[1].value;
251-
this.currentSize = this.sizeOption[2].value;
252249
this.status = '1';
250+
this.fontChanged(this.builtinFonts[0].value);
251+
this.colorChanged(this.colorOption[1].value);
252+
this.sizeChanged(this.sizeOption[2].value);
253253
this.cssChanged()
254254
}).catch(() => {
255255
this.editor.focus();

0 commit comments

Comments
 (0)