VUE前端报错 504 Gateway Time-out
还会看到Error occurred while trying to proxy request……这时候就要检查下代理设置中http有没有加,尤其是IP地址正确不正确proxyTable: {'/api': {target: 'http://XX.XX.XX.XX:XXX00',changeOrigin: true,pathRewrite: {'^/api': '/api'},...
·
还会看到Error occurred while trying to proxy request……
这时候就要检查下代理设置中http有没有加,尤其是IP地址正确不正确
proxyTable: {
'/api': {
target: 'http://XX.XX.XX.XX:XXX00',
changeOrigin: true,
pathRewrite: {
'^/api': '/api'
},
logLevel: "debug"
},
'/pdfviewer': {
target: 'http://XX.XX.XX.XX:XXX00',
changeOrigin: true,
pathRewrite: {
'^/pdfviewer': ''
},
logLevel: "debug"
},
'/papi': {
target: 'http://XX.XX.XX.XX:XXX00',
changeOrigin: true,
pathRewrite: {
'^/papi': '/api'
}
}
}
更多推荐
已为社区贡献1条内容
所有评论(0)