Skip to content

Commit 20b7523

Browse files
committed
fix: double check payment status
1 parent 90cce51 commit 20b7523

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/stores/user.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ export const useUserStore = defineStore('user', {
278278
this.loadCustomReportSettings()
279279

280280
console.log('✅ 用户状态已恢复:', this.user?.email)
281+
281282
} else {
282283
console.log('ℹ️ 无有效会话')
283284
this.logout()
@@ -287,11 +288,6 @@ export const useUserStore = defineStore('user', {
287288
this.logout()
288289
}
289290

290-
// 初始化 Onboarding 和付费状态
291-
const hasCompletedOnboarding = localStorage.getItem('hasCompletedOnboarding') === 'true'
292-
this.hasCompletedOnboarding = hasCompletedOnboarding
293-
294-
await this.checkPaymentStatus()
295291
},
296292
togglePro() {
297293
this.hasPaid = !this.hasPaid

0 commit comments

Comments
 (0)