fix: add route base close #404

This commit is contained in:
Vben
2021-03-23 23:03:29 +08:00
parent 8fb03961f5
commit 8ad127c293
12 changed files with 30 additions and 51 deletions

View File

@@ -9,7 +9,7 @@ const WHITE_NAME_LIST = [LoginRoute.name, REDIRECT_NAME];
// app router
const router = createRouter({
history: createWebHashHistory(),
history: createWebHashHistory(import.meta.env.VITE_PUBLIC_PATH),
routes: (basicRoutes as unknown) as RouteRecordRaw[],
strict: true,
scrollBehavior: () => ({ left: 0, top: 0 }),