提交 de8e545e authored 作者: sin's avatar sin

- 添加 global context,权限控制

上级 6c94fc1f
import React from 'react';
// 创建全局的权限控制 context,方便在所有页面使用
const GlobalAuthorityContext = React.createContext({
theme: 'dark',
toggle: () => {},
});
export default GlobalAuthorityContext;
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论