From 82d999071e007e9690d1aca616220e0c50846f9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B4=9B=E5=B8=8C=E9=9B=85?= Date: Fri, 26 Apr 2024 22:40:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20BUILD=5FTIMESTAMP=20?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E4=B8=B2=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/index.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 89bed0a..229752b 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -57,13 +57,10 @@ import { getMyRole, login } from '@/api/user' import type { FormInstance, InputInstance } from 'element-plus' import { settings as viteSettings } from '@/settings' import { ElMessage } from 'element-plus' -import moment from 'moment' const buildEnv = (() => { - let time = import.meta.env.VITE_BUILD_TIMESTAMP + const time = import.meta.env.VITE_BUILD_TIMESTAMP if (!time) return null - const date = new Date(Number.parseInt(time)) - time = `${moment(date).format('YYYY-mm-dd HH:mm:ss')} GMT+8` const build = import.meta.env.VITE_BUILD_DISPLAY_NAME const hash = (import.meta.env.VITE_GIT_COMMIT || '').slice(0, 8) return `构建 ${build} ${hash} ${time}`