diff --git a/src/components/codeMirror/header.vue b/src/components/codeMirror/header.vue index 2603f5b..2652ea7 100644 --- a/src/components/codeMirror/header.vue +++ b/src/components/codeMirror/header.vue @@ -253,7 +253,7 @@ export default { document.body.removeChild(downLink) }, ...mapMutations(['clearEditorToDefault','setCurrentColor', 'setCiteStatus', 'themeChanged', - 'setOutput', 'setCurrentFont', 'setCurrentSize', 'setCssEditorValue', 'setWxRendererOptions']) + 'setHtml', 'setCurrentFont', 'setCurrentSize', 'setCssEditorValue', 'setWxRendererOptions']) }, mounted() { this.selectFont = this.currentFont; diff --git a/src/store/index.js b/src/store/index.js index 0e9876e..a7c5433 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -26,7 +26,7 @@ const state = { nightMode: false }; const mutations = { - setHtmL(state, data) { + setHtml(state, data) { state.html = data; }, setEditorValue(state, data) {