This commit is contained in:
2026-01-22 16:02:38 +08:00
commit 2dd8993f55
1451 changed files with 128028 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import { defineConfig } from '@vben/vite-config';
export default defineConfig(async () => {
return {
application: {},
vite: {
server: {
proxy: {
'/api': {
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
// mock代理目标地址
target: 'http://localhost:8888/api',
// target: 'https://www.tianyuancha.cn/api',
// target: 'https://www.zhinengcha.cn/api',
// target: 'https://www.quannengcha./api',
ws: true,
},
},
},
},
};
});