feat: 优化Header

This commit is contained in:
R524809
2026-01-06 17:14:03 +08:00
parent 76c22429ad
commit 712f66b725
4 changed files with 41 additions and 9 deletions

View File

@@ -1,5 +1,6 @@
import { defineConfig, loadEnv } from 'vite';
import react from '@vitejs/plugin-react-swc';
import path from 'path';
// https://vite.dev/config/
export default defineConfig(({ mode }) => {
@@ -8,6 +9,11 @@ export default defineConfig(({ mode }) => {
return {
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
server: {
port: parseInt(env.VITE_PORT || '5173', 10),
host: true, // 允许外部访问