2
0

首页置换成仪表盘

This commit is contained in:
lai
2025-01-09 14:38:34 +08:00
parent 48a69c8b4b
commit 4708df2a6f
13 changed files with 12 additions and 12 deletions

View File

@@ -226,7 +226,7 @@ const local: any = {
403: 'No Permission', 403: 'No Permission',
404: 'Page Not Found', 404: 'Page Not Found',
500: 'Server Error', 500: 'Server Error',
home: 'Home', home: 'Dashboard',
'user-center': 'User Center', 'user-center': 'User Center',
about: 'About', about: 'About',
function: 'System Function', function: 'System Function',

View File

@@ -226,7 +226,7 @@ const local:any = {
403: '无权限', 403: '无权限',
404: '页面不存在', 404: '页面不存在',
500: '服务器错误', 500: '服务器错误',
home: '首页', home: '仪表盘',
'user-center': '个人中心', 'user-center': '个人中心',
about: '关于', about: '关于',
function: '系统功能', function: '系统功能',

View File

@@ -45,11 +45,11 @@ export const generatedRoutes: GeneratedRoute[] = [
} }
}, },
{ {
name: 'home', name: 'dashboard',
path: '/home', path: '/dashboard',
component: 'layout.base$view.home', component: 'layout.base$view.dashboard',
meta: { meta: {
title: 'home', title: 'dashboard',
i18nKey: 'route.home', i18nKey: 'route.home',
icon: 'mdi:monitor-dashboard', icon: 'mdi:monitor-dashboard',
order: 0, order: 0,

View File

@@ -198,7 +198,7 @@ const routeMap: RouteMap = {
'function_super-page': '/function/super-page', 'function_super-page': '/function/super-page',
'function_tab': '/function/tab', 'function_tab': '/function/tab',
'function_toggle-auth': '/function/toggle-auth', 'function_toggle-auth': '/function/toggle-auth',
'home': '/home', 'dashboard': '/dashboard',
'login': '/login/:module(pwd-login|code-login|register|reset-pwd|bind-wechat)?', 'login': '/login/:module(pwd-login|code-login|register|reset-pwd|bind-wechat)?',
'user-center': '/user-center' 'user-center': '/user-center'
}; };

View File

@@ -4,7 +4,7 @@ import { transformElegantRoutesToVueRoutes } from '../elegant/transform';
export const ROOT_ROUTE: CustomRoute = { export const ROOT_ROUTE: CustomRoute = {
name: 'root', name: 'root',
path: '/', path: '/',
redirect: '/home', redirect: '/dashboard',
meta: { meta: {
title: 'root', title: 'root',
constant: true constant: true

View File

@@ -31,7 +31,7 @@ export const useRouteStore = defineStore(SetupStoreId.Route, () => {
/** Home route key */ /** Home route key */
const routeHome = ref('home'); const routeHome = ref('dashboard');
/** /**
* Set route home * Set route home
@@ -47,7 +47,7 @@ export const useRouteStore = defineStore(SetupStoreId.Route, () => {
function addAuthRoutes(routes: ElegantConstRoute[]) { function addAuthRoutes(routes: ElegantConstRoute[]) {
const {constantRoutes} = createStaticRoutes(); const {constantRoutes} = createStaticRoutes();
const authRoutesMap = new Map(constantRoutes.map(route => [route.name, route])); const authRoutesMap = new Map(constantRoutes.map(route => [route.name, route]));
routes.forEach(route => { routes.forEach(route => {
@@ -168,9 +168,9 @@ export const useRouteStore = defineStore(SetupStoreId.Route, () => {
handleAuthRoutes(); handleAuthRoutes();
setRouteHome('home'); setRouteHome('dashboard');
handleUpdateRootRouteRedirect('home'); handleUpdateRootRouteRedirect('dashboard');
setIsInitAuthRoute(true); setIsInitAuthRoute(true);
} else { } else {