【update】增加请求静态图片的配置
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user