chore: first login modify password

This commit is contained in:
jialin
2024-06-29 20:29:11 +08:00
parent cf0113e8d8
commit d47e53114c
25 changed files with 337 additions and 113 deletions
+5 -1
View File
@@ -1,3 +1,5 @@
import { userAtom } from '@/atoms/user';
import { clearAtomStorage } from '@/atoms/utils';
import { request } from '@umijs/max';
import qs from 'query-string';
@@ -17,9 +19,11 @@ export const login = async (
};
export const logout = async (userInfo: any) => {
return request(`${AUTH_API}/logout`, {
await request(`${AUTH_API}/logout`, {
method: 'POST'
});
clearAtomStorage(userAtom);
return;
};
export const accessToken = async () => {