build(projects): update tsconfig、eslintrc

This commit is contained in:
Soybean
2022-03-12 16:21:40 +08:00
parent 4093dcd6dc
commit 75de2b0604
131 changed files with 1174 additions and 1140 deletions

View File

@ -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',
},
},
];
/** 路由名称 */