|
@@ -1,4 +1,4 @@
|
|
|
-import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";
|
|
|
+import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";
|
|
|
|
|
|
export const Layout = () => import("@/layout/index.vue");
|
|
|
|
|
@@ -57,7 +57,7 @@ export const constantRoutes: RouteRecordRaw[] = [
|
|
|
* 创建路由
|
|
|
*/
|
|
|
const router = createRouter({
|
|
|
- history: createWebHashHistory(),
|
|
|
+ history: createWebHistory(),
|
|
|
routes: constantRoutes,
|
|
|
// 刷新时,滚动条位置还原
|
|
|
scrollBehavior: () => ({ left: 0, top: 0 }),
|