This commit is contained in:
2026-04-29 14:58:02 +08:00
parent e729f9bd31
commit b98c66ca21
370 changed files with 55094 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server:{
proxy:{
//此处编写代理规则
"/api":{
target:"http://localhost:8080",
changeOrigin:true,
rewrite:path=>{
return path.replace(/\/api/,'api/');
}
}
}
}
})