瀏覽代碼

使用history模式

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