chore: 初始化租户端(vben web-ele)
This commit is contained in:
25
apps/web-ele/vite.config.mts
Normal file
25
apps/web-ele/vite.config.mts
Normal file
@@ -0,0 +1,25 @@
|
||||
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,
|
||||
// 本地联调:后端地址(保持 /api 前缀,不做 rewrite)
|
||||
target: 'http://127.0.0.1:7801',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user