This commit is contained in:
xie7654
2025-06-29 21:45:27 +08:00
commit f6e68e37c8
1539 changed files with 129319 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
import { defineConfig } from '@vben/vite-config';
import ElementPlus from 'unplugin-element-plus/vite';
export default defineConfig(async () => {
return {
application: {},
vite: {
plugins: [
ElementPlus({
format: 'esm',
}),
],
server: {
proxy: {
'/api': {
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
// mock代理目标地址
target: 'http://localhost:5320/api',
ws: true,
},
},
},
},
};
});