( 我請求的接口是thinkphp中的接口,tp接口請求的是node那邊的(請假tp接口是獲取不到數據的,但是成功了200,數據為null),但是我直接請求node那邊的是可以獲取到數據的,我懷疑tp這邊有問題,但是不知道怎么解決 )proxyTable: { '/api': {
target: 'http://*********.com/nearby/index.php/Home/NearbyInterface',
changeOrigin: true,
pathRewrite: { '^/api': ''
}
}
},this.$http.post('/api/showProducts', {openId: 'ohs23uMdqr0s_5T92ssm8PbzqcSg'}).then((response) => { console.log(response);
console.log(JSON.parse(response.body));
}, (response) => { console.log(response);
});我在post接口是沒問題的
vue-cli 中的proxyTable 請求成功了,但是數據數據未空,怎么回事的呢
慕桂英4014372
2018-10-19 14:15:44
