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,
isImageIllegal,
fixCodeWhiteSpace
} from '../../scripts/util'
} from '../../assets/scripts/util'
import fileApi from '../../api/file';
import {
solveWeChatImage,
solveHtml
} from '../../scripts/converter'
import config from '../../scripts/config'
import DEFAULT_CSS_CONTENT from '../../scripts/themes/default-theme-css'
} 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 {mapState, mapMutations} from 'vuex'
export default {

View File

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

View File

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

View File

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