fix: file path fix

This commit is contained in:
JimQing 2020-07-09 21:55:10 +08:00
parent ee71cb4abb
commit f99a9c3192
4 changed files with 9 additions and 10 deletions

View File

@ -75,14 +75,14 @@ import {
setFontSize, setFontSize,
isImageIllegal, isImageIllegal,
fixCodeWhiteSpace fixCodeWhiteSpace
} from '../../scripts/util' } from '../../assets/scripts/util'
import fileApi from '../../api/file'; import fileApi from '../../api/file';
import { import {
solveWeChatImage, solveWeChatImage,
solveHtml solveHtml
} from '../../scripts/converter' } from '../../assets/scripts/converter'
import config from '../../scripts/config' import config from '../../assets/scripts/config'
import DEFAULT_CSS_CONTENT from '../../scripts/themes/default-theme-css' import DEFAULT_CSS_CONTENT from '../../assets/scripts/themes/default-theme-css'
import resetDialog from '../codeMirror/resetDialog' import resetDialog from '../codeMirror/resetDialog'
import {mapState, mapMutations} from 'vuex' import {mapState, mapMutations} from 'vuex'
export default { export default {

View File

@ -16,7 +16,7 @@
</template> </template>
<script> <script>
import config from '../../scripts/config' import config from '../../assets/scripts/config'
import {mapState, mapMutations} from 'vuex'; import {mapState, mapMutations} from 'vuex';
export default { export default {
props: { props: {

View File

@ -15,8 +15,8 @@ import 'codemirror/addon/hint/show-hint.js'
import 'codemirror/addon/hint/css-hint.js' import 'codemirror/addon/hint/css-hint.js'
import './assets/less/theme.less'; import './assets/less/theme.less';
// 对codemirror预处理 // 对codemirror预处理
import './scripts/format' import './assets/scripts/format'
import './scripts/closebrackets' import './assets/scripts/closebrackets'
Vue.use(ElementUI) Vue.use(ElementUI)
Vue.config.productionTip = false Vue.config.productionTip = false

View File

@ -57,11 +57,10 @@ import {
customCssWithTemplate, customCssWithTemplate,
saveEditorContent, saveEditorContent,
isImageIllegal isImageIllegal
} from '../scripts/util' } from '../assets/scripts/util'
require('codemirror/mode/javascript/javascript') require('codemirror/mode/javascript/javascript')
// import $ from 'jquery' import config from '../assets/scripts/config'
import config from '../scripts/config'
import {mapState, mapMutations} from 'vuex'; import {mapState, mapMutations} from 'vuex';
export default { export default {
data() { data() {