首先安装vue-cli,然后创建项目
如果没有vue.config.js,请手动创建文件
附上代码
constwebpack=require(webpack ) ) module.exports ) devserver:(proxy: ) (/gettype ) : ) /目标接口域是否进行跨域更改注册: true,对于http请求,此参数为secure:true, 如果是以pathrewrite3360//API开头的域名,则为target指定“^/gettype的ws: false } } }、configure web pack : { plugins 3360 [ nettttype ]