完成媒体管理模块

This commit is contained in:
ah--desktop
2025-09-14 02:59:36 +08:00
parent ea217caac6
commit 6e710c37c1
42 changed files with 1677 additions and 43 deletions
@@ -2,17 +2,26 @@ import { defineConfig } from '@vben/vite-config';
export default defineConfig(async () => {
return {
application: {},
application: {
// 设置API URL
apiURL: '/api',
},
vite: {
server: {
proxy: {
'/api': {
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
// mock代理目标地址
// 后端服务地址
target: 'http://localhost:8080',
ws: true,
},
// 静态资源代理 - 用于访问上传的图片和文件
'/uploads': {
changeOrigin: true,
target: 'http://localhost:8080',
ws: false,
},
},
},
},