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' } from '../../assets/scripts/converter'
import config from '../../assets/scripts/config' import config from '../../assets/scripts/config'
import DEFAULT_CSS_CONTENT from '../../assets/scripts/themes/default-theme-css' 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' import {mapState, mapMutations} from 'vuex'
export default { export default {
name: 'editor-header', name: 'editor-header',

View File

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