fix: file path fix

This commit is contained in:
JimQing 2020-07-11 19:13:09 +08:00
parent a1b75a7dea
commit 7d833fe5be
5 changed files with 10 additions and 11 deletions

View File

@ -83,7 +83,7 @@ import {
} from '../../assets/scripts/converter'
import config from '../../assets/scripts/config'
import DEFAULT_CSS_CONTENT from '../../assets/scripts/themes/default-theme-css'
import resetDialog from '../codeMirror/resetDialog'
import resetDialog from './resetDialog'
import {mapState, mapMutations} from 'vuex'
export default {
name: 'editor-header',

View File

@ -48,9 +48,9 @@
</template>
<script>
import fileApi from '../api/file';
import editorHeader from '../components/codeMirror/header';
import aboutDialog from '../components/codeMirror/aboutDialog';
import insertFormDialog from '../components/codeMirror/insertForm';
import editorHeader from '../components/CodemirrorEditor/header';
import aboutDialog from '../components/CodemirrorEditor/aboutDialog';
import insertFormDialog from '../components/CodemirrorEditor/insertForm';
import {
setFontSize,
css2json,
@ -60,12 +60,10 @@ import {
} from '../assets/scripts/util'
require('codemirror/mode/javascript/javascript')
import config from '../assets/scripts/config'
import {mapState, mapMutations} from 'vuex';
export default {
data() {
return {
config: config,
showBox: false,
aboutDialogVisible: false,
dialogFormVisible: false,
@ -163,9 +161,6 @@ export default {
});
this.onEditorRefresh()
},
onTextareaChange() {
console.log('change');
},
//
uploaded(response, file, fileList) {
if (response) {
@ -228,8 +223,12 @@ export default {
this.isCoping = false;
}, 800);
},
...mapMutations(['initEditorState', 'initEditorEntity', 'setWxRendererOptions',
'editorRefresh', 'initCssEditorEntity'])
...mapMutations([
'initEditorState',
'initEditorEntity',
'setWxRendererOptions',
'editorRefresh',
'initCssEditorEntity'])
},
mounted() {
this.leftAndRightScroll();