fix(projects): 修复 BASE_URL 没有生效的问题

This commit is contained in:
pany
2022-03-03 12:01:14 +08:00
parent 1e2fdda090
commit 72d7dcfa5e
4 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ import { createRouterGuard } from './guard';
const createHistoryFunc = import.meta.env.VITE_IS_VERCEL === '1' ? createWebHashHistory : createWebHistory;
export const router = createRouter({
history: createHistoryFunc(import.meta.env.BASE_URL),
history: createHistoryFunc(import.meta.env.VITE_APP_BASE_URL),
routes: transformAuthRoutesToVueRoutes(constantRoutes),
scrollBehavior
});