diff --git a/admin-web/src/layouts/GlobalAuthorityContext.js b/admin-web/src/layouts/GlobalAuthorityContext.js new file mode 100644 index 000000000..e0ee5ec51 --- /dev/null +++ b/admin-web/src/layouts/GlobalAuthorityContext.js @@ -0,0 +1,9 @@ +import React from 'react'; + +// 创建全局的权限控制 context,方便在所有页面使用 +const GlobalAuthorityContext = React.createContext({ + theme: 'dark', + toggle: () => {}, +}); + +export default GlobalAuthorityContext;