chore: merge code
This commit is contained in:
commit
f9f2025e48
|
|
@ -223,6 +223,7 @@ Our contributors have made this project better. Thank you! 🙏
|
|||
<a href="https://github.com/pyQianYi"><img src="https://avatars.githubusercontent.com/u/57526688?v=4" width="60px" alt="pyQianYi" /></a>
|
||||
<a href="https://github.com/xyy94813"><img src="https://avatars.githubusercontent.com/u/17971352?v=4" width="60px" alt="xyy94813" /></a>
|
||||
<a href="https://github.com/faukwaa"><img src="https://avatars.githubusercontent.com/u/133618995?v=4" width="60px" alt="faukwaa" /></a>
|
||||
<a href="https://github.com/chensongni"><img src="https://avatars.githubusercontent.com/u/18071921?v=4" width="60px" alt="chensongni" /></a>
|
||||
</p>
|
||||
|
||||
## License
|
||||
|
|
|
|||
|
|
@ -223,6 +223,7 @@ pnpm build
|
|||
<a href="https://github.com/pyQianYi"><img src="https://avatars.githubusercontent.com/u/57526688?v=4" width="60px" alt="pyQianYi" /></a>
|
||||
<a href="https://github.com/xyy94813"><img src="https://avatars.githubusercontent.com/u/17971352?v=4" width="60px" alt="xyy94813" /></a>
|
||||
<a href="https://github.com/faukwaa"><img src="https://avatars.githubusercontent.com/u/133618995?v=4" width="60px" alt="faukwaa" /></a>
|
||||
<a href="https://github.com/chensongni"><img src="https://avatars.githubusercontent.com/u/18071921?v=4" width="60px" alt="chensongni" /></a>
|
||||
</p>
|
||||
|
||||
## License
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"name": "vue3-vant-mobile",
|
||||
"type": "module",
|
||||
"version": "2.3.10",
|
||||
"packageManager": "pnpm@9.8.0",
|
||||
"version": "2.3.11",
|
||||
"packageManager": "pnpm@9.9.0",
|
||||
"description": "Vue + Vite H5 Starter Template",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { createRouter, createWebHistory } from 'vue-router/auto'
|
||||
import { routes } from 'vue-router/auto-routes'
|
||||
import { handleHotUpdate, routes } from 'vue-router/auto-routes'
|
||||
|
||||
import NProgress from 'nprogress'
|
||||
import 'nprogress/nprogress.css'
|
||||
|
|
@ -16,6 +16,11 @@ const router = createRouter({
|
|||
routes,
|
||||
})
|
||||
|
||||
// This will update routes at runtime without reloading the page
|
||||
if (import.meta.hot) {
|
||||
handleHotUpdate(router)
|
||||
}
|
||||
|
||||
router.beforeEach(async (to: EnhancedRouteLocation, _from, next) => {
|
||||
NProgress.start()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue