File tree Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff line change 11import { createRouter , createWebHistory } from 'vue-router/auto'
2- import { routes } from 'vue-router/auto-routes'
2+ import { handleHotUpdate , routes } from 'vue-router/auto-routes'
33
44import NProgress from 'nprogress'
55import '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+
1924router . beforeEach ( async ( to : EnhancedRouteLocation , _from , next ) => {
2025 NProgress . start ( )
2126
You can’t perform that action at this time.
0 commit comments