feat: 用户详情代金券管理与优惠模块修复
Build and Deploy Vue3 / build (push) Successful in 1m39s
Build and Deploy Vue3 / deploy (push) Successful in 42s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
shiran
2026-06-26 16:46:57 +08:00
parent 6f82e5e79d
commit 4bf7c4857b
15 changed files with 862 additions and 111 deletions
+6 -3
View File
@@ -3956,11 +3956,14 @@ const loadSgLockInfo = async () => {
}
}
watch(vmId, () => { if (isPageActive) initPage() })
const isCurrentRoute = () => route.name === 'VirtVmDetail'
watch(vmId, () => { if (isPageActive && isCurrentRoute()) initPage() })
watch(activeTab, (tab) => { if (detail.value) triggerTabLoad(tab) })
onActivated(() => {
onActivated(async () => {
isPageActive = true
if (loadedVmId !== vmId.value) initPage()
await nextTick()
if (isCurrentRoute() && loadedVmId !== vmId.value) initPage()
})
onDeactivated(() => { isPageActive = false; stopMigratePolling() })
onBeforeUnmount(() => { isPageActive = false; disposeCharts(); stopMigratePolling(); stopDetailAutoRefresh() })