mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-10-15 22:33:40 +08:00
refactor(projects): remove enum
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
Reference in New Issue
Block a user