feat: router use hash history

Signed-off-by: Ryan Wang <i@ryanc.cc>
pull/581/head
Ryan Wang 2022-04-13 17:34:14 +08:00
parent 245f4475ed
commit b08d7870ff
1 changed files with 2 additions and 2 deletions

View File

@ -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 }),
});