【update】增加请求静态图片的配置

This commit is contained in:
fengchenchen
2022-11-14 15:44:44 +08:00
parent 262dbbdf92
commit 3f5bfef2b6
2 changed files with 23 additions and 0 deletions
+6
View File
@@ -14,7 +14,13 @@ module.exports = {
'/api': {
target: 'http://127.0.0.1:7060', // 服务器
changeOrigin: true,
},
// 请求静态图片配置项
'/api/home/pic': {
target: 'http://127.0.0.1:7061', // 图片请求的nginx网址
changeOrigin: true
}
}
},
chainWebpack: config => {