Browse Source

登出method修改

bill 2 năm trước cách đây
mục cha
commit
50861cdf8a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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()
 }