Skip to content

Commit

Permalink
取消pinia、router依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
zmoth committed Mar 1, 2023
1 parent 8314dfa commit 137a9fe
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 165 deletions.
2 changes: 0 additions & 2 deletions components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,5 @@ declare module '@vue/runtime-core' {
ElTag: typeof import('element-plus/es')['ElTag']
HelloWorld: typeof import('./src/components/HelloWorld.vue')['default']
IconEcosystem: typeof import('./src/components/icons/IconEcosystem.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
}
}
180 changes: 59 additions & 121 deletions package-lock.json

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

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
},
"dependencies": {
"element-plus": "^2.2.32",
"pinia": "^2.0.32",
"vue": "^3.2.47",
"vue-router": "^4.1.6"
"vue": "^3.2.47"
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.2.0",
Expand Down
5 changes: 0 additions & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

// import './assets/main.css'

const app = createApp(App)

app.use(createPinia())
app.use(router)

app.mount('#app')
22 changes: 0 additions & 22 deletions src/router/index.ts

This file was deleted.

12 changes: 0 additions & 12 deletions src/stores/counter.ts

This file was deleted.

0 comments on commit 137a9fe

Please sign in to comment.