Browse Source

登出method修改

bill 2 years ago
parent
commit
50861cdf8a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/api/user.ts

+ 1 - 1
src/api/user.ts

@@ -22,6 +22,6 @@ export const login = async (data: LoginParams) => {
 }
 
 export const logout = async () => {
-  await axios.get(LOGOUT, {})
+  await axios.post(LOGOUT, {})
   delToken()
 }