feat(version): 添加版本更新检测功能

添加 version-polling 依赖并实现版本更新检测功能
移除旧的 CheckUpdates 组件,改用新的版本检测方案
This commit is contained in:
dap
2026-01-14 17:20:01 +08:00
parent 56c8c3db9a
commit 0ef6eb2502
4 changed files with 71 additions and 3 deletions

View File

@@ -29,6 +29,7 @@ import { $t } from '#/locales';
import { resetRoutes } from '#/router';
import { useAuthStore, useNotifyStore } from '#/store';
import { useTenantStore } from '#/store/tenant';
import { useVersionUpdate } from '#/utils/check-update';
import LoginForm from '#/views/_core/authentication/login.vue';
const userStore = useUserStore();
@@ -131,6 +132,8 @@ watch(
immediate: true,
},
);
// 检测版本更新
useVersionUpdate();
</script>
<template>