fix: auth template types (#3295)

This commit is contained in:
木杉 2020-06-28 19:10:07 +08:00 committed by GitHub
parent 55be7f3894
commit ee67cfc10c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -7,7 +7,7 @@ function useAuth() {
return [
auth,
setAuth
];
] as [Record<string, boolean>, typeof setAuth];
}
// class 组件支持 Hoc 用法

View File

@ -1,7 +1,5 @@
export default {
state: {
auth: {}
},
state: {},
reducers: {
setAuth (state, payload) {