首页置换成仪表盘
This commit is contained in:
1 parent
48a69c8b4b
commit
4708df2a6f
13 files changed
+12
-12
No files matched your search
@@ -226,7 +226,7 @@ const local: any = {
|
||||
403: 'No Permission',
|
||||
404: 'Page Not Found',
|
||||
500: 'Server Error',
|
||||
home: 'Home',
|
||||
home: 'Dashboard',
|
||||
'user-center': 'User Center',
|
||||
about: 'About',
|
||||
function: 'System Function',
|
||||
|
||||
@@ -226,7 +226,7 @@ const local:any = {
|
||||
403: '无权限',
|
||||
404: '页面不存在',
|
||||
500: '服务器错误',
|
||||
home: '首页',
|
||||
home: '仪表盘',
|
||||
'user-center': '个人中心',
|
||||
about: '关于',
|
||||
function: '系统功能',
|
||||
|
||||
@@ -45,11 +45,11 @@ export const generatedRoutes: GeneratedRoute[] = [
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'home',
|
||||
path: '/home',
|
||||
component: 'layout.base$view.home',
|
||||
name: 'dashboard',
|
||||
path: '/dashboard',
|
||||
component: 'layout.base$view.dashboard',
|
||||
meta: {
|
||||
title: 'home',
|
||||
title: 'dashboard',
|
||||
i18nKey: 'route.home',
|
||||
icon: 'mdi:monitor-dashboard',
|
||||
order: 0,
|
||||
|
||||
@@ -198,7 +198,7 @@ const routeMap: RouteMap = {
|
||||
'function_super-page': '/function/super-page',
|
||||
'function_tab': '/function/tab',
|
||||
'function_toggle-auth': '/function/toggle-auth',
|
||||
'home': '/home',
|
||||
'dashboard': '/dashboard',
|
||||
'login': '/login/:module(pwd-login|code-login|register|reset-pwd|bind-wechat)?',
|
||||
'user-center': '/user-center'
|
||||
};
|
||||
|
||||
@@ -4,7 +4,7 @@ import { transformElegantRoutesToVueRoutes } from '../elegant/transform';
|
||||
export const ROOT_ROUTE: CustomRoute = {
|
||||
name: 'root',
|
||||
path: '/',
|
||||
redirect: '/home',
|
||||
redirect: '/dashboard',
|
||||
meta: {
|
||||
title: 'root',
|
||||
constant: true
|
||||
|
||||
@@ -31,7 +31,7 @@ export const useRouteStore = defineStore(SetupStoreId.Route, () => {
|
||||
|
||||
|
||||
/** Home route key */
|
||||
const routeHome = ref('home');
|
||||
const routeHome = ref('dashboard');
|
||||
|
||||
/**
|
||||
* Set route home
|
||||
@@ -47,7 +47,7 @@ export const useRouteStore = defineStore(SetupStoreId.Route, () => {
|
||||
|
||||
function addAuthRoutes(routes: ElegantConstRoute[]) {
|
||||
const {constantRoutes} = createStaticRoutes();
|
||||
|
||||
|
||||
const authRoutesMap = new Map(constantRoutes.map(route => [route.name, route]));
|
||||
|
||||
routes.forEach(route => {
|
||||
@@ -168,9 +168,9 @@ export const useRouteStore = defineStore(SetupStoreId.Route, () => {
|
||||
|
||||
handleAuthRoutes();
|
||||
|
||||
setRouteHome('home');
|
||||
setRouteHome('dashboard');
|
||||
|
||||
handleUpdateRootRouteRedirect('home');
|
||||
handleUpdateRootRouteRedirect('dashboard');
|
||||
|
||||
setIsInitAuthRoute(true);
|
||||
} else {
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user