- 添加 global context,权限控制
parent
6c94fc1fe2
commit
de8e545e50
|
@ -0,0 +1,9 @@
|
|||
import React from 'react';
|
||||
|
||||
// 创建全局的权限控制 context,方便在所有页面使用
|
||||
const GlobalAuthorityContext = React.createContext({
|
||||
theme: 'dark',
|
||||
toggle: () => {},
|
||||
});
|
||||
|
||||
export default GlobalAuthorityContext;
|
Loading…
Reference in New Issue