vue 项目添加解决跨域配置连接数据库
在config下面点index.js中

找到
proxyTable:{}
添加如下代码
proxyTable: { "/api":{ target:"http://localhost:3000", changeOrigin:true, pathRewrite:{ "^/api":"http://localhost:3000" } } },
不停学习,热爱是源源不断的动力。
在config下面点index.js中

找到
proxyTable: { "/api":{ target:"http://localhost:3000", changeOrigin:true, pathRewrite:{ "^/api":"http://localhost:3000" } } },