proxyTable: {
'/server': {
target: 'http://localhost:8000/', // 接口的域�?
// secure: false, // 如果是https接口,需要配置这个参�?
changeOrigin: true, // 如果接口跨域,需要进行这个参数配�?
// pathRewrite: {
// '^/api': ''
// }
}
'/user': {
target: 'http://localhost:8000/user/register', // 接口的域�?
secure: true, // 如果是https接口,需要配置这个参�?
changeOrigin: true, // 如果接口跨域,需要进行这个参数配�?
// pathRewrite: {
// '^/api': ''
// }
},
}
localhost:800还是localhost:8000呢?
还有我不太理解为什么把第二个的secure设为true,从代码上来看,你只是链接到了http的接口呀