Compare commits
No commits in common. "11ccfedcb50ca1d01abf822653bf83b7166ce47f" and "a91351dabb9bf65ad160f3e5453afb7e5b7578ea" have entirely different histories.
11ccfedcb5
...
a91351dabb
|
@ -4,7 +4,7 @@ module.exports = function(app) {
|
||||||
app.use(
|
app.use(
|
||||||
'/api', // 如果请求路径匹配'/api',则进行代理
|
'/api', // 如果请求路径匹配'/api',则进行代理
|
||||||
createProxyMiddleware({
|
createProxyMiddleware({
|
||||||
target: 'http://127.0.0.1:8000', // 目标后端服务地址
|
target: 'http://127.0.0.1:5000', // 目标后端服务地址
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue