|
|
@ -6,13 +6,6 @@ module.exports = { |
|
|
|
target: 'https://apis.map.qq.com', |
|
|
|
changeOrigin: true, |
|
|
|
pathRewrite: { '^map-api': '' } |
|
|
|
}, |
|
|
|
'/api': { |
|
|
|
target: 'https://aip.baidubce.com', // 目标服务器
|
|
|
|
changeOrigin: true, // 允许跨域
|
|
|
|
pathRewrite: { |
|
|
|
'^/api': '', // 将 /api 替换为空
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|