mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-10-14 22:03:41 +08:00
fix(projects): Fix homepage mount error under dynamic routing
This commit is contained in:
@@ -100,9 +100,9 @@ export function getRouteIcons(route: App.Global.TabRoute) {
|
||||
* Get default home tab
|
||||
*
|
||||
* @param router
|
||||
* @param homeRouteName routeHome in useRouteStore
|
||||
*/
|
||||
export function getDefaultHomeTab(router: Router) {
|
||||
const homeRouteName = import.meta.env.VITE_ROUTE_HOME;
|
||||
export function getDefaultHomeTab(router: Router, homeRouteName: LastLevelRouteKey) {
|
||||
const homeRoutePath = getRoutePath(homeRouteName);
|
||||
const i18nLabel = $t(`route.${homeRouteName}`);
|
||||
|
||||
|
Reference in New Issue
Block a user