Skip to content

Commit 0feac00

Browse files
committed
fix: update default content style
1 parent 7f3db24 commit 0feac00

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/store/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ const mutations = {
145145
state.output = output
146146
},
147147
clearEditorToDefault(state) {
148-
state.editor.setValue(DEFAULT_CONTENT)
148+
const doc = formatDoc(DEFAULT_CONTENT)
149+
state.editor.setValue(doc)
149150
state.cssEditor.setValue(DEFAULT_CSS_CONTENT)
150151
}
151152
}

src/view/CodemirrorEditor.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ export default {
120120
if (this.changeTimer) clearTimeout(this.changeTimer);
121121
this.changeTimer = setTimeout(() => {
122122
this.onEditorRefresh()
123-
console.log('tick');
124123
saveEditorContent(this.editor, '__editor_content')
125124
}, 300);
126125
});

0 commit comments

Comments
 (0)