- 添加 global context,权限控制

pull/1/head
sin 2019-02-28 13:38:02 +08:00
parent 6c94fc1fe2
commit de8e545e50
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
import React from 'react';
// 创建全局的权限控制 context方便在所有页面使用
const GlobalAuthorityContext = React.createContext({
theme: 'dark',
toggle: () => {},
});
export default GlobalAuthorityContext;