chore: move file (#161)

使用 views 替换 pages
This commit is contained in:
YangQi 2022-07-27 14:58:25 +08:00 committed by GitHub
parent 0289f389d7
commit 82f805f678
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 13 deletions

View File

@ -1,6 +1,6 @@
import Vue from 'vue'
import VueRouter from 'vue-router'
import index from '@/pages/index/index'
import index from '@/views'
Vue.use(VueRouter)

View File

@ -94,11 +94,11 @@
</div>
</template>
<script>
import editorHeader from '../../../components/CodemirrorEditor/header'
import aboutDialog from '../../../components/CodemirrorEditor/aboutDialog'
import insertFormDialog from '../../../components/CodemirrorEditor/insertForm'
import rightClickMenu from '../../../components/CodemirrorEditor/rightClickMenu'
import uploadImgDialog from '../../../components/CodemirrorEditor/uploadImgDialog'
import editorHeader from '../components/CodemirrorEditor/header'
import aboutDialog from '../components/CodemirrorEditor/aboutDialog'
import insertFormDialog from '../components/CodemirrorEditor/insertForm'
import rightClickMenu from '../components/CodemirrorEditor/rightClickMenu'
import uploadImgDialog from '../components/CodemirrorEditor/uploadImgDialog'
import {
css2json,
@ -109,10 +109,10 @@ import {
saveEditorContent,
customCssWithTemplate,
checkImage,
} from '../../../assets/scripts/util'
} from '../assets/scripts/util'
import { toBase64 } from '../../../assets/scripts/util'
import fileApi from '../../../api/file'
import { toBase64 } from '../assets/scripts/util'
import fileApi from '../api/file'
require(`codemirror/mode/javascript/javascript`)
import { mapState, mapMutations } from 'vuex'
@ -605,7 +605,7 @@ export default {
width: 50px;
height: 50px;
transform: translate(-50%, -50%);
background: url('../../../assets/images/favicon.png') no-repeat;
background: url('../assets/images/favicon.png') no-repeat;
background-size: cover;
}
span {
@ -655,5 +655,5 @@ export default {
}
</style>
<style lang="less" scoped>
@import url('../../../assets/less/app.less');
@import url('../assets/less/app.less');
</style>

View File

@ -6,8 +6,9 @@
</template>
<script>
import Loading from '../../components/Loading'
import CodemirrorEditor from './view/CodemirrorEditor'
import Loading from '../components/Loading'
import CodemirrorEditor from './CodemirrorEditor'
export default {
name: `App`,
components: {
@ -32,10 +33,12 @@ export default {
.fade-leave-to {
opacity: 0;
}
.fade-enter-to,
.fade-leave {
opacity: 1;
}
.fade-enter-active,
.fade-leave-active {
transition: all 1s;