feat: 初始化项目结构并添加核心功能模块
- 新增文档模板和导航结构 - 实现服务器基础API路由和控制器 - 添加扩展插件配置和前端框架 - 引入多租户和权限管理模块 - 集成日志和数据库配置 - 添加核心业务模型和类型定义
This commit is contained in:
29
dashboard/.umi/core/route.tsx
Normal file
29
dashboard/.umi/core/route.tsx
Normal file
@@ -0,0 +1,29 @@
|
||||
// @ts-nocheck
|
||||
// This file is generated by Umi automatically
|
||||
// DO NOT CHANGE IT MANUALLY!
|
||||
import routeProps from './routeProps';
|
||||
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
Object.entries(routeProps).forEach(([key, value]) => {
|
||||
const internalProps = ['path', 'id', 'parentId', 'isLayout', 'isWrapper', 'layout', 'clientLoader'];
|
||||
Object.keys(value).forEach((prop) => {
|
||||
if (internalProps.includes(prop)) {
|
||||
throw new Error(
|
||||
`[UmiJS] route '${key}' should not have '${prop}' prop, please remove this property in 'routeProps'.`
|
||||
)
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
import React from 'react';
|
||||
|
||||
export async function getRoutes() {
|
||||
const routes = {} as const;
|
||||
return {
|
||||
routes,
|
||||
routeComponents: {
|
||||
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user