mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
build(projects): update tsconfig、eslintrc
This commit is contained in:
@ -8,24 +8,24 @@ export const constantRoutes: AuthRoute.Route[] = [
|
||||
path: '/',
|
||||
redirect: '/dashboard/analysis',
|
||||
meta: {
|
||||
title: 'Root'
|
||||
}
|
||||
title: 'Root',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'login',
|
||||
path: '/login',
|
||||
component: 'self',
|
||||
props: route => {
|
||||
props: (route) => {
|
||||
const moduleType = (route.params.module as LoginModuleKey) || 'pwd-login';
|
||||
return {
|
||||
module: moduleType
|
||||
module: moduleType,
|
||||
};
|
||||
},
|
||||
meta: {
|
||||
title: '登录',
|
||||
dynamicPath: `/login/:module(${getLoginModuleRegExp()})?`,
|
||||
singleLayout: 'blank'
|
||||
}
|
||||
singleLayout: 'blank',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'no-permission',
|
||||
@ -33,8 +33,8 @@ export const constantRoutes: AuthRoute.Route[] = [
|
||||
component: 'self',
|
||||
meta: {
|
||||
title: '无权限',
|
||||
singleLayout: 'blank'
|
||||
}
|
||||
singleLayout: 'blank',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'not-found',
|
||||
@ -42,8 +42,8 @@ export const constantRoutes: AuthRoute.Route[] = [
|
||||
component: 'self',
|
||||
meta: {
|
||||
title: '未找到',
|
||||
singleLayout: 'blank'
|
||||
}
|
||||
singleLayout: 'blank',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'service-error',
|
||||
@ -51,8 +51,8 @@ export const constantRoutes: AuthRoute.Route[] = [
|
||||
component: 'self',
|
||||
meta: {
|
||||
title: '服务器错误',
|
||||
singleLayout: 'blank'
|
||||
}
|
||||
singleLayout: 'blank',
|
||||
},
|
||||
},
|
||||
// 匹配无效路径的路由
|
||||
{
|
||||
@ -61,9 +61,9 @@ export const constantRoutes: AuthRoute.Route[] = [
|
||||
component: 'blank',
|
||||
meta: {
|
||||
title: '未找到',
|
||||
singleLayout: 'blank'
|
||||
}
|
||||
}
|
||||
singleLayout: 'blank',
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
/** 路由名称 */
|
||||
|
Reference in New Issue
Block a user