fix(hubInfo):修复 Tag 重复闭合 + prettier 格式
NodeJS with Webpack / build (push) Canceled after 0s

This commit is contained in:
personal827 committed 2026-10-28 14:30:01 +08:00
1 parent d7adc26272
commit 77e6e5861b
1 file changed
+4 -2
+4 -2
View File
@@ -15,7 +15,7 @@
:content="hasNew ? `有新版本 v${upd.latest_version}` : `当前版本 v${version}`"
placement="bottom"
>
<Tag :color="hasNew ? 'orange' : 'default'" class="ver-chip" @click="load()">v{{ version }}</Tag>
<Tag :color="hasNew ? 'orange' : 'default'" class="ver-chip" @click="load()">
v{{ version }}
</Tag>
</Tooltip>
@@ -116,7 +116,9 @@ async function load() {
onMounted(() => {
load();
// 心跳(服务端已节流 30min,这里只是触发)
fetch('/api/hub/heartbeat', { method: 'POST' }).catch(() => { /* 心跳失败静默 */ });
fetch('/api/hub/heartbeat', { method: 'POST' }).catch(() => {
/* 心跳失败静默 */
});
// 页面重新可见时补一次(服务端节流兜底)
document.addEventListener('visibilitychange', () => {
if (document.visibilityState === 'visible') load();