Browse Source

perf(router): 优化路由 base 路径配置

wangcong 2 months ago
parent
commit
0d838b60aa
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/router/index.ts

+ 1 - 3
src/router/index.ts

@@ -10,9 +10,7 @@ const routes = [
 // console.log(import.meta.env.BASE_URL, import.meta.env);
 
 const router = createRouter({
-  history: createWebHistory(
-    import.meta.env.BASE_URL[0] === '/' ? import.meta.env.BASE_URL : '/'
-  ),
+  history: createWebHistory('/v/'),
   routes,
 });