feat:react框架初始化

This commit is contained in:
ltProj
2025-10-11 11:12:07 +08:00
commit 8632f294bf
57 changed files with 26073 additions and 0 deletions

10
src/access.ts Normal file
View File

@@ -0,0 +1,10 @@
export default (initialState: API.UserInfo) => {
// 在这里按照初始化数据定义项目中的权限,统一管理
// 参考文档 https://umijs.org/docs/max/access
const canSeeAdmin = !!(
initialState && initialState.name !== 'dontHaveAccess'
);
return {
canSeeAdmin,
};
};