cors报错 vue前端解决方法 config下的index.js增加代理 dev: { // Paths assetsSubDirectory: 'static', assetsPublicPath: '/', proxyTable: { '/api':{ target:'http://localhost:9527/restaurant', changeOrign: true, pathRewrite:{ '^/api':'' } } } }