chore: update site about display

This commit is contained in:
engigu
2025-08-10 17:13:27 +08:00
parent 1c7b0fac25
commit 11ba362232
2 changed files with 4 additions and 5 deletions
@@ -22,8 +22,7 @@ const state = reactive({
techStack: ['Golang','Vue 3', 'TypeScript', 'Vite', 'Tailwind CSS', 'Shadcn/ui'], techStack: ['Golang','Vue 3', 'TypeScript', 'Vite', 'Tailwind CSS', 'Shadcn/ui'],
githubUrl: 'https://github.com/engigu/Message-Push-Nest', githubUrl: 'https://github.com/engigu/Message-Push-Nest',
copyright: '保留所有权利.', copyright: '保留所有权利.',
versionLog: '', versionLog: ''
buildTime: ''
}) })
// 获取关于页面配置 // 获取关于页面配置
@@ -52,7 +51,6 @@ const buildTime = computed(() => {
onMounted(() => { onMounted(() => {
getAboutConfig() getAboutConfig()
state.buildTime = buildTime.value
}) })
</script> </script>
@@ -100,7 +98,7 @@ export default {
</div> --> </div> -->
<div class="flex justify-between"> <div class="flex justify-between">
<span class="text-gray-600">构建时间:</span> <span class="text-gray-600">构建时间:</span>
<span>{{ state.buildTime.includes('开发模式') ? state.buildTime : new Date(state.buildTime).toLocaleString('zh-CN') }}</span> <span>{{ buildTime.includes('开发模式') ? buildTime : new Date(buildTime).toLocaleString('zh-CN') }}</span>
</div> </div>
</div> </div>
</div> </div>
+2 -1
View File
@@ -22,7 +22,8 @@ export default defineConfig(() => {
}, },
}, },
define: { define: {
__BUILD_TIME__: JSON.stringify(process.env.BUILD_TIME || new Date().toISOString()) __BUILD_TIME__: JSON.stringify(new Date().toISOString()),
'globalThis.__BUILD_TIME__': JSON.stringify(new Date().toISOString()),
}, },
} }
}) })