This commit is contained in:
2025-09-05 16:53:11 +08:00
parent 82879fc920
commit 1bb83df40b
7 changed files with 157 additions and 50 deletions

View File

@@ -99,6 +99,8 @@ export const useUserStore = defineStore('user', () => {
if (response.data.success) {
// 检查是否需要支付
if (response.data.needPayment) {
setToken(response.data.token)
setUser(response.data.user)
// 需要支付的情况,返回成功状态和支付相关信息
return {
success: true,