Selaa lähdekoodia

改为webhistory

pujiaming 2 vuotta sitten
vanhempi
commit
1120e37eb0
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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() {
     // 始终滚动到顶部