vue.config.js
@@ -2,15 +2,17 @@ // 修改的配置 // 将baseUrl: '/api',改为baseUrl: '/', publicPath: '/', outputDir: 'dist', devServer: { port: 80, proxy: { '/api': { target: '192.168.31.233:8090', '/api/api': { //target: 'http://srs.highdatas.com:8090', target: 'http://fcfhyi.natappfree.cc', changeOrigin: true, ws: true, pathRewrite: { '^/api': '' '^/api/api': '' } } }