proxyTable: { '/api': { target: 'http://api.xxxxxxxx.com', pathRewrite: { '^/api': '/api' //这里你设置为空了,加上去试试。而你请求的路径上面还是写着api } } }