红包逻辑需要重构

This commit is contained in:
cbb
2026-01-16 17:57:43 +08:00
parent 5f9629f198
commit f0aee6ba14
16 changed files with 335 additions and 45 deletions

View File

@@ -105,9 +105,9 @@ const handleError = (statusCode, data) => {
content: '登录已过期,请重新登录',
showCancel: false,
success: async () => {
await useUserStore().logout()
await useUserStore().clearAllUserInfo()
// 可选:跳转登录页
// uni.redirectTo({ url: '/pages/login/index' })
uni.redirectTo({ url: '/pages/login/index' })
console.log('登录已过期,====')
},
complete: () => {