diff --git a/src/components/SocialLinks.vue b/src/components/SocialLinks.vue index 1604241..cdb59d4 100644 --- a/src/components/SocialLinks.vue +++ b/src/components/SocialLinks.vue @@ -1,11 +1,11 @@ @@ -113,12 +114,13 @@ const openLink = (url) => { :key="`qr-${platform.name}`" class="qr-code" > - - { :key="index" class="social-item" :style="{ '--hover-color': platform.hoverColor || platform.color }" - @click="platform.qrCode ? toggleQrCode(platform) : openLink(platform.url)" + @click=" + platform.qrCode ? toggleQrCode(platform) : openLink(platform.url) + " role="button" :aria-label="platform.ariaLabel || `${platform.name}链接`" tabindex="0" - @keydown.enter="platform.qrCode ? toggleQrCode(platform) : openLink(platform.url)" + @keydown.enter=" + platform.qrCode ? toggleQrCode(platform) : openLink(platform.url) + " > { background: rgba(var(--v-theme-surface), 0.8); backdrop-filter: blur(12px); border-radius: 1.5rem; - box-shadow: - 0 10px 30px rgba(0, 0, 0, 0.1), + box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.1); will-change: transform; overflow: hidden; - transition: - background 0.3s ease, - box-shadow 0.3s ease; + transition: background 0.3s ease, box-shadow 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.05); } /* 暗黑模式适配 */ :global([data-theme="dark"]) .social-links-card { background: rgba(var(--v-theme-surface), 0.6); - box-shadow: - 0 10px 30px rgba(0, 0, 0, 0.3), + box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.05); } @@ -347,14 +349,14 @@ const openLink = (url) => { .social-icon { font-size: 1.4rem; } - + .qr-code { padding: 1rem; } - + .qr-code img { width: 150px; height: 150px; } } - \ No newline at end of file + diff --git a/vite.config.js b/vite.config.js index 4e955f5..d33a298 100644 --- a/vite.config.js +++ b/vite.config.js @@ -26,5 +26,12 @@ export default defineConfig({ implementation: 'sass-embedded' } } + }, + build: { + rollupOptions: { + output: { + assetFileNames: 'assets/[name]-[hash][extname]' + } + } } })