mirror of
https://gitee.com/zhijiantianya/yudao-cloud.git
synced 2025-12-30 09:22:27 +00:00
- 添加 global context,权限控制
This commit is contained in:
9
admin-web/src/layouts/GlobalAuthorityContext.js
Normal file
9
admin-web/src/layouts/GlobalAuthorityContext.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import React from 'react';
|
||||
|
||||
// 创建全局的权限控制 context,方便在所有页面使用
|
||||
const GlobalAuthorityContext = React.createContext({
|
||||
theme: 'dark',
|
||||
toggle: () => {},
|
||||
});
|
||||
|
||||
export default GlobalAuthorityContext;
|
||||
Reference in New Issue
Block a user