This commit is contained in:
雷欧(林平凡)
2025-07-13 14:52:41 +08:00
commit e7a2951c68
10 changed files with 2259 additions and 0 deletions

23
vite.config.js Normal file
View File

@@ -0,0 +1,23 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': '/src'
}
},
server: {
host:'0.0.0.0',
port:9999,
// 解决开发环境跨域
proxy: {
'/api': {
target: 'http://134.175.126.206:6666',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
}
}
})