config/index.js开启代理
dev: { // Paths assetsSubDirectory: 'static', assetsPublicPath: '/', proxyTable: { "/api":{ target:"https://www.baidu.com/api", changeOrigin:true, pathRewrite:{ '^/api':'' } } },
config/index.js开启代理
dev: { // Paths assetsSubDirectory: 'static', assetsPublicPath: '/', proxyTable: { "/api":{ target:"https://www.baidu.com/api", changeOrigin:true, pathRewrite:{ '^/api':'' } } },