Skip to content

Commit

Permalink
chore: move file (doocs#161)
Browse files Browse the repository at this point in the history
使用 views 替换 pages
  • Loading branch information
YangFong authored Jul 27, 2022
1 parent 0289f38 commit 82f805f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/router/index.js
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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'
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -655,5 +655,5 @@ export default {
}
</style>
<style lang="less" scoped>
@import url('../../../assets/less/app.less');
@import url('../assets/less/app.less');
</style>
7 changes: 5 additions & 2 deletions src/pages/index/index.vue → src/views/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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;
Expand Down

0 comments on commit 82f805f

Please sign in to comment.