mirror of
https://github.com/doocs/md.git
synced 2024-11-28 13:36:32 +08:00
fix: file path fix
This commit is contained in:
parent
a1b75a7dea
commit
7d833fe5be
@ -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',
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user