前端Node+Vue项目, 把本地8080端口改为https请求

修改vue.config.js文件中的devServer配置

module.exports = {
    
    
    devServer: {
    
    
        port: 8080,     // 端口号
        https: true,  // 开启https访问
    }
};

猜你喜欢

转载自blog.csdn.net/qq_40896145/article/details/129672398