完善团课相关页面交互,完成团课列表页基础后端交互。(后端连接至服务器,版本为DEV分支版本)
This commit is contained in:
@@ -12,11 +12,10 @@ export default defineConfig({
|
||||
},
|
||||
server: {
|
||||
proxy: {
|
||||
// 匹配所有 /api/ 开头的请求(排除静态文件)
|
||||
'/api': {
|
||||
target: 'http://192.168.5.15:8084', // 你的后端SpringBoot地址
|
||||
changeOrigin: true, // 开启跨域伪装
|
||||
// 只代理真正的后端API请求,排除 .js .vue 等静态文件
|
||||
target: 'https://www.gymmanage.xyz',
|
||||
changeOrigin: true,
|
||||
secure: true,
|
||||
bypass: function(req, res, proxyOptions) {
|
||||
if (req.url.indexOf('.js') !== -1 || req.url.indexOf('.vue') !== -1 ||
|
||||
req.url.indexOf('.css') !== -1 || req.url.indexOf('.json') !== -1) {
|
||||
|
||||
Reference in New Issue
Block a user