修改续订时间方式

This commit is contained in:
wangxiaowei
2025-12-19 00:32:34 +08:00
parent f54cc0f8eb
commit fc3072980c
6 changed files with 129 additions and 125 deletions

View File

@ -54,8 +54,8 @@ export const useUserStore = defineStore(
const removeUserInfo = () => {
isLoggedIn.value = false
userInfo.value = { ...userInfoState }
uni.removeStorageSync('userInfo')
uni.removeStorageSync('token')
// 清除所有缓存
uni.clearStorageSync()
}
/**
* 获取用户信息
@ -103,10 +103,7 @@ export const useUserStore = defineStore(
* 退出登录 并 删除用户信息
*/
const logout = async () => {
// 清除所有缓存
uni.clearStorageSync()
_logout()
// await _logout()
removeUserInfo()
}
/**