fix: comment out unused VersionBadge import and siteVersion to fix TS build
Some checks failed
CI / test (push) Has been cancelled
CI / golangci-lint (push) Has been cancelled
Security Scan / backend-security (push) Has been cancelled
Security Scan / frontend-security (push) Has been cancelled

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
huangzhenpc
2026-04-03 01:21:05 +08:00
parent 637afc24cd
commit 6a9bfee222

View File

@@ -151,7 +151,7 @@ import { computed, h, onMounted, ref, watch } from 'vue'
import { useRoute } from 'vue-router' import { useRoute } from 'vue-router'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import { useAdminSettingsStore, useAppStore, useAuthStore, useOnboardingStore } from '@/stores' import { useAdminSettingsStore, useAppStore, useAuthStore, useOnboardingStore } from '@/stores'
import VersionBadge from '@/components/common/VersionBadge.vue' // import VersionBadge from '@/components/common/VersionBadge.vue' // disabled for TianShuAPI fork
import { sanitizeSvg } from '@/utils/sanitize' import { sanitizeSvg } from '@/utils/sanitize'
interface NavItem { interface NavItem {
@@ -178,7 +178,7 @@ const isDark = ref(document.documentElement.classList.contains('dark'))
// Site settings from appStore (cached, no flicker) // Site settings from appStore (cached, no flicker)
const siteName = computed(() => appStore.siteName) const siteName = computed(() => appStore.siteName)
const siteLogo = computed(() => appStore.siteLogo) const siteLogo = computed(() => appStore.siteLogo)
const siteVersion = computed(() => appStore.siteVersion) // const siteVersion = computed(() => appStore.siteVersion) // disabled for TianShuAPI fork
const settingsLoaded = computed(() => appStore.publicSettingsLoaded) const settingsLoaded = computed(() => appStore.publicSettingsLoaded)
// SVG Icon Components // SVG Icon Components