feat: unify contact button styles, dynamic version from git tag, enrich AI positions & homepage UX

This commit is contained in:
yuzhiran
2026-06-21 09:16:31 +08:00
parent 1d1c4ab590
commit b8667395ac
4 changed files with 98 additions and 42 deletions
+9
View File
@@ -1,8 +1,17 @@
import { defineConfig } from 'vite';
import { execSync } from 'child_process';
import uni from '@dcloudio/vite-plugin-uni';
let appVersion = '1.0.0';
try {
appVersion = execSync('git describe --tags --abbrev=0 2>/dev/null || echo "1.0.0"', { encoding: 'utf8' }).trim().replace(/^v/, '');
} catch {}
export default defineConfig({
plugins: [uni()],
define: {
__APP_VERSION__: JSON.stringify(appVersion),
},
server: {
port: 8888,
strictPort: true,