fresh available

This commit is contained in:
felinae98
2021-12-15 22:29:54 +08:00
parent 56397bc270
commit 866e4cd2fb
15 changed files with 219 additions and 76 deletions
-17
View File
@@ -1,17 +0,0 @@
import { createContext } from "react";
import { LoginContextType, GlobalConf } from "./type";
export const loginContextDefault: LoginContextType = {
login: {
login: false,
type: '',
name: '',
id: '123',
// groups: [],
token: ''
},
save: () => {}
};
export const LoginContext = createContext(loginContextDefault);
export const GlobalConfContext = createContext<GlobalConf>({platformConf: {}, loaded: false});
+2 -1
View File
@@ -9,7 +9,8 @@ export interface LoginStatus {
name: string
id: string
// groups: Array<QQGroup>
token: string
token: string,
failed: boolean,
}
export type LoginContextType = {