瀏覽代碼

docs: add router history doc

xingyu 2 年之前
父節點
當前提交
3b441fd7ef
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 })