Explorar o código

docs: add router history doc

xingyu %!s(int64=2) %!d(string=hai) anos
pai
achega
3b441fd7ef
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      yudao-ui-admin-vue3/src/router/index.ts

+ 1 - 1
yudao-ui-admin-vue3/src/router/index.ts

@@ -18,7 +18,7 @@ const { loadStart, loadDone } = usePageLoading()
 
 // 创建路由实例
 const router = createRouter({
-  history: createWebHashHistory(),
+  history: createWebHashHistory(), // createWebHashHistory URL带#,createWebHistory URL不带#
   strict: true,
   routes: remainingRouter as RouteRecordRaw[],
   scrollBehavior: () => ({ left: 0, top: 0 })