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 Vue from 'vue'
import VueRouter from 'vue-router' import VueRouter from 'vue-router'
import index from '@/pages/index/index' import index from '@/views'
Vue.use(VueRouter) Vue.use(VueRouter)

View File

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

View File

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