vue的請求規則
proxyTable: {
'/api':{
// 攔截請求規則
target:'http://localhost:9999',
changeOrigin:true,
pathRewrite:{
'/api':''
}
}
}
nginx的請求規則
location /api {
proxy_pass http://localhost:9999/;
}