在.umirc.ts文件中加入 proxy: { ‘/api’: { target: ‘http://localhost:9093’, //代理的地址 pathRewrite: { ‘^/api’: ‘’ }, changeOrigin: true } }