- 添加 global context,权限控制
This commit is contained in:
parent
6c94fc1fe2
commit
de8e545e50
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;
|
Loading…
Reference in New Issue
Block a user