AXIOS 如何忽略SSL证书认证

更换了ssl证书,请求接口时返回的错误信息是:Network Error。根据网上资料也添加了httpsAgent属性,还是没解决。请问各位LZ有没有其他方法
const service = axios.create({
baseURL: process.env.BASE_API, // api的base_url
timeout: 125000, // 15000 // 请求超时时间
httpsAgent: new https.Agent({// 忽略 SSL 的属性
rejectUnauthorized: false
})
})

根据网上搜索出来的方法,解决该问题了
问题原因:SSL/TLS 证书验证导致的。
解决方案:在 src/main/index.js 中添加相关配置,忽略证书相关的错误。
app.commandLine.appendSwitch('ignore-certificate-errors')