Commit 3b441fd7ef6c5ca219924b50b6109e7932c414cf

Authored by xingyu
1 parent 0c66d91a

docs: add router history doc

yudao-ui-admin-vue3/src/router/index.ts
@@ -18,7 +18,7 @@ const { loadStart, loadDone } = usePageLoading() @@ -18,7 +18,7 @@ const { loadStart, loadDone } = usePageLoading()
18 18
19 // 创建路由实例 19 // 创建路由实例
20 const router = createRouter({ 20 const router = createRouter({
21 - history: createWebHashHistory(), 21 + history: createWebHashHistory(), // createWebHashHistory URL带#,createWebHistory URL不带#
22 strict: true, 22 strict: true,
23 routes: remainingRouter as RouteRecordRaw[], 23 routes: remainingRouter as RouteRecordRaw[],
24 scrollBehavior: () => ({ left: 0, top: 0 }) 24 scrollBehavior: () => ({ left: 0, top: 0 })