退出登录

This commit is contained in:
2026-05-22 17:32:49 +08:00
parent edbe5629fd
commit f89ffbcec3
7 changed files with 124 additions and 16 deletions

View File

@@ -164,6 +164,12 @@ interface ApiService {
suspend fun verifyOptionPassword(@Body request: VerifyOptionPasswordRequest): GetCodeBean<Any>
/**
* 退出登录
*/
@POST("/app/logout")
suspend fun logout(): GetCodeBean<Any>
}

View File

@@ -25,4 +25,9 @@ object UserinfoUtil {
return gson.fromJson(string, LoginBean::class.java)
}
fun clearUserInfo() {
SPUtils.getInstance().remove(KEY_USER)
ApiConfig.updateAuthToken("")
}
}