refactor(projects): remove enum

This commit is contained in:
Soybean
2023-02-23 08:38:03 +08:00
parent 44b544745d
commit 21d5214247
31 changed files with 323 additions and 240 deletions

View File

@ -18,7 +18,7 @@ export const constantRoutes: AuthRoute.Route[] = [
path: '/login',
component: 'self',
props: route => {
const moduleType = (route.params.module as EnumType.LoginModuleKey) || 'pwd-login';
const moduleType = (route.params.module as UnionKey.LoginModule) || 'pwd-login';
return {
module: moduleType
};