Explorar el Código

改为webhistory

pujiaming hace 2 años
padre
commit
1120e37eb0
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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() {
     // 始终滚动到顶部