feat:多项功能优化
This commit is contained in:
@@ -14,7 +14,12 @@ export default defineConfig({
|
||||
port: 5173,
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:8891',
|
||||
target: 'http://localhost:8890',
|
||||
changeOrigin: true
|
||||
},
|
||||
// 附件静态文件(PDF/图片预览):与 API 同源,避免开发态下 /uploads 打到 Vite 而 404
|
||||
'/uploads': {
|
||||
target: 'http://localhost:8890',
|
||||
changeOrigin: true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user