This commit is contained in:
fengchuanhn@gmail.com
2026-05-23 10:33:26 +08:00
parent 6ad45ed60c
commit defeaf7434
5 changed files with 161 additions and 82 deletions

View File

@@ -88,12 +88,19 @@ function setupHeartbeatLogoutListener() {
if (!authStore.isAuthenticated) {
return;
}
authStore.currentUser.vip_end_time="2022-06-28T16:01:13";
await router.replace({ name: "card-activate" });
authStore.redirectToCardActivate(router);
});
}
function setupVipWatch() {
authStore.$subscribe(() => {
if (!authStore.needsVipActivation) return;
if (router.currentRoute.value.name === "card-activate") return;
authStore.redirectToCardActivate(router);
});
}
setupHeartbeatLogoutListener();
setupVipWatch();
app.mount("#app");