mirror of https://github.com/halo-dev/halo-admin
parent
245f4475ed
commit
b08d7870ff
|
@ -1,8 +1,8 @@
|
|||
import { createRouter, createWebHistory } from "vue-router";
|
||||
import { createRouter, createWebHashHistory } from "vue-router";
|
||||
import routesConfig from "@/router/routes.config";
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
history: createWebHashHistory(import.meta.env.BASE_URL),
|
||||
routes: routesConfig,
|
||||
scrollBehavior: () => ({ left: 0, top: 0 }),
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue