fix:修复路由名称
This commit is contained in:
@@ -9,7 +9,7 @@ const routes: RouteRecordRaw[] = Object.values(routeModules)
|
|||||||
.flat() // 扁平化数组,确保所有路由项都在一个数组中
|
.flat() // 扁平化数组,确保所有路由项都在一个数组中
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHashHistory('/blog/'),
|
history: createWebHashHistory(),
|
||||||
scrollBehavior: () => ({ top: 0 }),
|
scrollBehavior: () => ({ top: 0 }),
|
||||||
routes
|
routes
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user