mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat(projects): 重构项目的TS类型架构,去除interface文件夹
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
import { getLoginModuleRegExp } from '@/utils';
|
||||
import type { LoginModuleKey } from '@/interface';
|
||||
|
||||
/** 固定的路由 */
|
||||
export const constantRoutes: AuthRoute.Route[] = [
|
||||
@ -16,7 +15,7 @@ export const constantRoutes: AuthRoute.Route[] = [
|
||||
path: '/login',
|
||||
component: 'self',
|
||||
props: (route) => {
|
||||
const moduleType = (route.params.module as LoginModuleKey) || 'pwd-login';
|
||||
const moduleType = (route.params.module as EnumType.LoginModuleKey) || 'pwd-login';
|
||||
return {
|
||||
module: moduleType,
|
||||
};
|
||||
|
Reference in New Issue
Block a user