nuxt 项目 certificate has expired 或 nuxt unable to verify the first certificate

发布时间 2023-09-21 16:58:21作者: 慕城蓝就

plugins/axios.js

const https = require('https')

export default function ({ $axios}){
   $axios.create({
       httpsAgent: new https.Agent({
           rejectUnauthorized: false
        })
   })
}