前端小版本自动更新

This commit is contained in:
2026-04-27 13:37:51 +08:00
parent 8ca34cabd1
commit c93cabe0eb
4 changed files with 46 additions and 3 deletions
@@ -1,6 +1,9 @@
<script setup>
import { useI18n } from 'vue-i18n'
const { t } = useI18n()
// 从 vite.config.js define 注入的全局常量
const version = __APP_VERSION__
</script>
<template>
@@ -13,7 +16,10 @@ const { t } = useI18n()
<span class="text-gray-300 dark:text-dk-muted">·</span>
<a href="https://github.com/wuwenfengmi1998" target="_blank" class="hover:text-gray-700 dark:hover:text-dk-text" rel="noopener">{{ t('footer.author_home') }}</a>
</div>
<div class="text-sm text-gray-400">{{ t('footer.copy') }}</div>
<div class="text-sm text-gray-400">
{{ t('footer.copy') }}
<span class="ml-2 text-gray-300">v{{ version }}</span>
</div>
</div>
</footer>
</template>