feat(aboutDialog): 添加浏览器缓存版本信息展示

This commit is contained in:
PKC278
2025-12-30 02:55:08 +08:00
parent 9284d48f67
commit 6d14271fe8
4 changed files with 18 additions and 0 deletions

View File

@@ -4,9 +4,14 @@ import api from '@/api'
import { useI18n } from 'vue-i18n'
import { useDisplay } from 'vuetify'
declare const __APP_VERSION__: string
// 国际化
const { t } = useI18n()
// APP版本
const appVersion = __APP_VERSION__
// 定义事件
const emit = defineEmits(['close'])
@@ -170,6 +175,16 @@ onMounted(() => {
</dd>
</div>
</div>
<div>
<div class="max-w-6xl py-4 sm:grid sm:grid-cols-3 sm:gap-4">
<dt class="block text-sm font-bold">{{ t('setting.about.browserVersion') }}</dt>
<dd class="flex text-sm sm:col-span-2 sm:mt-0">
<span class="flex-grow flex flex-row items-center truncate">
<code class="truncate">{{ appVersion }}</code>
</span>
</dd>
</div>
</div>
<div>
<div class="max-w-6xl py-4 sm:grid sm:grid-cols-3 sm:gap-4">
<dt class="block text-sm font-bold">{{ t('setting.about.authVersion') }}</dt>