Skip to content

Commit f9f2025

Browse files
committed
chore: merge code
2 parents 44dff2b + cf1573c commit f9f2025

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ Our contributors have made this project better. Thank you! 🙏
223223
<a href="https://github.com/pyQianYi"><img src="https://avatars.githubusercontent.com/u/57526688?v=4" width="60px" alt="pyQianYi" /></a>
224224
<a href="https://github.com/xyy94813"><img src="https://avatars.githubusercontent.com/u/17971352?v=4" width="60px" alt="xyy94813" /></a>
225225
<a href="https://github.com/faukwaa"><img src="https://avatars.githubusercontent.com/u/133618995?v=4" width="60px" alt="faukwaa" /></a>
226+
<a href="https://github.com/chensongni"><img src="https://avatars.githubusercontent.com/u/18071921?v=4" width="60px" alt="chensongni" /></a>
226227
</p>
227228

228229
## License

README.zh-CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ pnpm build
223223
<a href="https://github.com/pyQianYi"><img src="https://avatars.githubusercontent.com/u/57526688?v=4" width="60px" alt="pyQianYi" /></a>
224224
<a href="https://github.com/xyy94813"><img src="https://avatars.githubusercontent.com/u/17971352?v=4" width="60px" alt="xyy94813" /></a>
225225
<a href="https://github.com/faukwaa"><img src="https://avatars.githubusercontent.com/u/133618995?v=4" width="60px" alt="faukwaa" /></a>
226+
<a href="https://github.com/chensongni"><img src="https://avatars.githubusercontent.com/u/18071921?v=4" width="60px" alt="chensongni" /></a>
226227
</p>
227228

228229
## License

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "vue3-vant-mobile",
33
"type": "module",
4-
"version": "2.3.10",
5-
"packageManager": "pnpm@9.8.0",
4+
"version": "2.3.11",
5+
"packageManager": "pnpm@9.9.0",
66
"description": "Vue + Vite H5 Starter Template",
77
"license": "MIT",
88
"scripts": {

src/router/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createRouter, createWebHistory } from 'vue-router/auto'
2-
import { routes } from 'vue-router/auto-routes'
2+
import { handleHotUpdate, routes } from 'vue-router/auto-routes'
33

44
import NProgress from 'nprogress'
55
import 'nprogress/nprogress.css'
@@ -16,6 +16,11 @@ const router = createRouter({
1616
routes,
1717
})
1818

19+
// This will update routes at runtime without reloading the page
20+
if (import.meta.hot) {
21+
handleHotUpdate(router)
22+
}
23+
1924
router.beforeEach(async (to: EnhancedRouteLocation, _from, next) => {
2025
NProgress.start()
2126

0 commit comments

Comments
 (0)