是否可以不在 axios 中硬编码 HTTPS 协议?我想在不进行硬编码的情况下使用 HTTPS 协议进行连接。
axios.post('https://example.com/api/user', {
firstName: 'Fred',
lastName: 'Flintstone'
})
预期的
axios.post('example.com/api/user', {
firstName: 'Fred',
lastName: 'Flintstone'
})