Skip to content

Commit 0322e7b

Browse files
committed
chore: Remove unused plugins
1 parent b518318 commit 0322e7b

File tree

6 files changed

+2
-28
lines changed

6 files changed

+2
-28
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
### Plugins
7979

8080
- [Vue Router](https://github.com/vuejs/router)
81-
- [`vue-router-better-scroller`](https://github.com/antfu/vue-router-better-scroller) - Enhanced scroll behavior for Vue Router
8281
- [`unplugin-vue-router`](https://github.com/posva/unplugin-vue-router) - file system based routing
8382
- [Pinia](https://pinia.vuejs.org) - Intuitive, type safe, light and flexible Store for Vue using the composition api
8483
- [`pinia-plugin-persistedstate`](https://github.com/prazdevs/pinia-plugin-persistedstate) - Configurable persistence and rehydration of Pinia stores

README.zh-CN.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
### 插件
7979

8080
- [Vue Router](https://github.com/vuejs/router)
81-
- [`vue-router-better-scroller`](https://github.com/antfu/vue-router-better-scroller) - 增强了 Vue Router 的滚动行为
8281
- [`unplugin-vue-router`](https://github.com/posva/unplugin-vue-router) - 以文件系统为基础的路由
8382
- [Pinia](https://pinia.vuejs.org) - 直接的, 类型安全的, 使用 Composition API 的轻便灵活的 Vue 状态管理库
8483
- [`pinia-plugin-persistedstate`](https://github.com/prazdevs/pinia-plugin-persistedstate) - 适用于 Pinia 的持久化存储插件

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@
3030
"vant": "^4.8.2",
3131
"vconsole": "^3.15.1",
3232
"vue": "^3.4.8",
33-
"vue-router": "^4.2.5",
34-
"vue-router-better-scroller": "^0.0.0"
33+
"vue-router": "^4.2.5"
3534
},
3635
"devDependencies": {
3736
"@antfu/eslint-config": "2.6.2",

pnpm-lock.yaml

Lines changed: 0 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { createApp } from 'vue'
22
import { createPinia } from 'pinia'
33
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
4-
import { createRouterScroller } from 'vue-router-better-scroller'
54
import App from './App.vue'
65
import router from './router'
76

@@ -30,13 +29,4 @@ pinia.use(piniaPluginPersistedstate)
3029
app.use(router)
3130
app.use(pinia)
3231

33-
// 增强了 Vue Router v4 的滚动行为
34-
app.use(createRouterScroller({
35-
selectors: {
36-
'window': true,
37-
'body': true,
38-
'.scrollable': true,
39-
},
40-
}))
41-
4232
app.mount('#app')

src/router/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ Check out [`unplugin-vue-router`](https://github.com/posva/unplugin-vue-router)
55

66
**src/views** 目录下的 Vue 文件会自动生成相同结构的路由。
77

8-
查看[' unplugin-vue-router '](https://github.com/posva/unplugin-vue-router)了解更多细节。
8+
查看[`unplugin-vue-router`](https://github.com/posva/unplugin-vue-router)了解更多细节。

0 commit comments

Comments
 (0)