Skip to content

Commit

Permalink
chore: remove vue-router (doocs#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
YangFong authored Jul 29, 2023
1 parent 6fde1c1 commit ae9f654
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 47 deletions.
6 changes: 0 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"qiniu-js": "^3.4.1",
"uuid": "^8.3.2",
"vue": "^2.7.14",
"vue-router": "^3.5.4",
"vuex": "^3.6.2"
},
"devDependencies": {
Expand Down
6 changes: 5 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
<template>
<div id="app">
<router-view></router-view>
<codemirror-editor />
</div>
</template>

<script setup>
import CodemirrorEditor from '@/views/CodemirrorEditor.vue'
</script>

<style lang="less">
// 仿 uniapp 外层全屏
html,
Expand Down
2 changes: 0 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import 'codemirror/addon/edit/matchbrackets'
import 'codemirror/addon/selection/active-line'
import 'codemirror/addon/hint/show-hint.js'
import 'codemirror/addon/hint/css-hint.js'
import router from './router'

Vue.use(ElementUI)

Expand All @@ -22,7 +21,6 @@ Vue.config.productionTip = false
App.mpType = `app`

const app = new Vue({
router,
store,
...App,
})
Expand Down
21 changes: 0 additions & 21 deletions src/router/index.js

This file was deleted.

16 changes: 0 additions & 16 deletions src/views/index.vue

This file was deleted.

0 comments on commit ae9f654

Please sign in to comment.