fix(frontend): 改进订阅状态实时刷新机制
- 在 Dashboard 页面加载时强制刷新订阅状态 - 在兑换订阅卡密后立即刷新订阅状态 - 清理订阅轮询相关注释
This commit is contained in:
@@ -79,7 +79,7 @@ export const useSubscriptionStore = defineStore('subscriptions', () => {
|
||||
}
|
||||
|
||||
/**
|
||||
* Start auto-refresh polling (every 5 minutes)
|
||||
* Start auto-refresh polling
|
||||
*/
|
||||
function startPolling() {
|
||||
if (pollerInterval) return
|
||||
@@ -88,7 +88,7 @@ export const useSubscriptionStore = defineStore('subscriptions', () => {
|
||||
fetchActiveSubscriptions(true).catch((error) => {
|
||||
console.error('Subscription polling failed:', error)
|
||||
})
|
||||
}, 5 * 60 * 1000) // 5 minutes
|
||||
}, 5 * 60 * 1000)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user