From d14649c86203ebf49dda4faf8f6ffd497aab0262 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Mon, 31 Mar 2025 08:31:58 +0800 Subject: [PATCH] =?UTF-8?q?YT-2291pc=E7=AB=AF=E5=A2=9E=E5=8A=A0=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 6 ++++++ src/utils/systemParam.ts | 11 ++++++++++- src/views/login/components/QRCodePDA.vue | 8 ++++++-- src/views/profile/index.vue | 6 ++++++ 4 files changed, 28 insertions(+), 3 deletions(-) diff --git a/.env b/.env index 832d68083..3e54319a1 100644 --- a/.env +++ b/.env @@ -15,3 +15,9 @@ VITE_APP_CAPTCHA_ENABLE=true # 百度统计 VITE_APP_BAIDU_CODE = a1ff8825baa73c3a78eb96aa40325abc + +# 应用版本号 +VITE_VERSION = V1.0 +# 更新版本号时间 +VITE_VERSION_TIME = 2025-03-31 09:00:00 + diff --git a/src/utils/systemParam.ts b/src/utils/systemParam.ts index 9cb51bf51..357583329 100644 --- a/src/utils/systemParam.ts +++ b/src/utils/systemParam.ts @@ -8,7 +8,8 @@ const systermUpdateAlert = ref(import.meta.env.VITE_SYSTERM_UPDATE_ALERT) const systermUpdateUrl = ref(import.meta.env.VITE_SYSTERM_UPDATE_URL) const needCode = ref(import.meta.env.VITE_NEED_CODE) const pdaUrl = ref(import.meta.env.VITE_PDA_URL) - +const version = ref(import.meta.env.VITE_VERSION) +const versionTime = ref(import.meta.env.VITE_VERSION_TIME) const mode = ref(import.meta.env.MODE) // 获取baseUrl export const getBaseUrl = () => { @@ -95,4 +96,12 @@ export const getPDAUrl = () => { } } +//获取版本号 +export const getVersion = () => { + return version.value +} +//获取版本号更新时间 +export const getVersionTime = () => { + return versionTime.value +} diff --git a/src/views/login/components/QRCodePDA.vue b/src/views/login/components/QRCodePDA.vue index d8d3b05fc..348a5b02e 100644 --- a/src/views/login/components/QRCodePDA.vue +++ b/src/views/login/components/QRCodePDA.vue @@ -5,12 +5,16 @@ - PDA安装程序下载链接 +
+ 版本号 {{version}} + PDA安装程序下载链接 +