Browse Source

使用history模式

skyblued 2 years ago
parent
commit
268f3a5f6c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/subpages/colexiu/router.ts

+ 2 - 2
src/subpages/colexiu/router.ts

@@ -1,4 +1,4 @@
-import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
+import { createRouter, createWebHashHistory, RouteRecordRaw, createWebHistory } from 'vue-router'
 
 const routes: RouteRecordRaw[] = [
   {
@@ -14,6 +14,6 @@ const routes: RouteRecordRaw[] = [
 ]
 
 export default createRouter({
-  history: createWebHashHistory(),
+  history: createWebHistory(),
   routes
 })