在 vite.config.js 中添加了动态构建版本定义,通过环境变量 VITE_APP_VERSION 实现。

更新了 login.vue,使其动态显示构建版本,而非使用硬编码的值。
This commit is contained in:
2026-04-27 14:16:32 +08:00
parent bbd9d48fa6
commit 00fd6c8710
2 changed files with 6 additions and 5 deletions

View File

@@ -100,7 +100,7 @@
</div>
</el-form-item>
<div class="footer">
© 2025 {{ currentTenantName || settings.systemName }}信息管理系统 | 版本 v2.5.1
© 2025 {{ currentTenantName || settings.systemName }}信息管理系统 | 版本 {{ loginVersion }}
<!-- 公司版权信息新增 -->
<div class="company-copyright">
技术支持上海经创贺联信息技术有限公司
@@ -141,6 +141,7 @@ const route = useRoute();
const router = useRouter();
const { proxy } = getCurrentInstance();
const env = import.meta.env.MODE;
const loginVersion = import.meta.env.VITE_APP_BUILD_VERSION;
const loginForm = ref({
username: '',