vue.config.js @@ -2,6 +2,7 @@ // 修改的配置 // 将baseUrl: '/api',改为baseUrl: '/', publicPath: '/', outputDir: 'dist', devServer: { proxy: { '/api/api': {