Browse Source

'移除无用的model'

main
郑州 3 years ago
parent
commit
b3146fab0a
1 changed files with 0 additions and 24 deletions
  1. +0
    -24
      src/models/useAuthModel.ts

+ 0
- 24
src/models/useAuthModel.ts View File

@@ -1,24 +0,0 @@
import { useCallback, useState } from "react";

export default function useAuthModel() {
const [isLogin, setLoginState] = useState(false);
const [user, setUser] = useState(null);
const [loading, setLoading] = useState(false);

const signin = useCallback((account, password) => {
setLoading(true);

setLoading(false);
}, []);

const signout = useCallback(() => {
}, [])

return {
isLogin,
user,
signin,
signout,
}
}

Loading…
Cancel
Save