vite.config.ts
@@ -58,15 +58,15 @@ open: true, host: '0.0.0.0', port: 8080, proxy: { '/api': { // 代理请求之后的请求地址(你的真实接口地址) target: CURRENT_CONFIG.baseURL, rewrite: path => path.replace(/^\/api/, ''), // 跨域 changeOrigin: true } } // proxy: { // '/api': { // // 代理请求之后的请求地址(你的真实接口地址) // target: CURRENT_CONFIG.baseURL, // rewrite: path => path.replace(/^\/api/, ''), // // 跨域 // changeOrigin: true // } // } }, envDir: './env', resolve: {