瀏覽代碼

改为webhistory

pujiaming 2 年之前
父節點
當前提交
1120e37eb0
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/router/index.ts

+ 2 - 2
src/router/index.ts

@@ -1,4 +1,4 @@
-import { createRouter, RouteRecordRaw, createWebHashHistory } from 'vue-router'
+import { createRouter, RouteRecordRaw, createWebHistory } from 'vue-router'
 import { getVersionFR } from '@/utils/version'
 import layout from '@/components/layout/index.vue'
 declare module 'vue-router' {
@@ -106,7 +106,7 @@ const router = createRouter({
   // createWebHashHistory hash 路由
   // createWebHistory history 路由
   // createMemoryHistory 带缓存 history 路由
-  history: createWebHashHistory(),
+  history: createWebHistory(),
   routes,
   scrollBehavior() {
     // 始终滚动到顶部