From 36c0a844cef31f89680ad974f97c69a1d2ba2c7e Mon Sep 17 00:00:00 2001 From: CharleeWa <18888351756@163.com> Date: Fri, 30 Aug 2024 00:17:13 +0800 Subject: [PATCH] chore: Add new contributor --- README.md | 1 + README.zh-CN.md | 1 + src/router/index.ts | 6 +++--- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 87570c9..e02b63c 100644 --- a/README.md +++ b/README.md @@ -223,6 +223,7 @@ Our contributors have made this project better. Thank you! 🙏 +
## License diff --git a/README.zh-CN.md b/README.zh-CN.md index e928bcd..7d87c80 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -223,6 +223,7 @@ pnpm build + ## License diff --git a/src/router/index.ts b/src/router/index.ts index 348e06c..79ed0d7 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,5 +1,5 @@ import { createRouter, createWebHistory } from 'vue-router/auto' -import { routes, handleHotUpdate } from 'vue-router/auto-routes' +import { handleHotUpdate, routes } from 'vue-router/auto-routes' import NProgress from 'nprogress' import 'nprogress/nprogress.css' @@ -16,8 +16,8 @@ const router = createRouter({ }) // This will update routes at runtime without reloading the page -if (import.meta.hot) { - handleHotUpdate(router) +if (import.meta.hot) { + handleHotUpdate(router) } router.beforeEach((to: EnhancedRouteLocation, from, next) => {