proxyTable: { '/api/a': { target: 'https://api.apiopen.top/', // 接口的域名 secure: false, // 如果是https接口,需要配置这个参数 changeOrigin: true, // 如果接口跨域,需要进行这个参数配置 pathRewrite: { '^/api/a': '/' // '/api/a/user' =='localhost:8080/user' } } },
proxyTable: { '/api/a': { target: 'https://api.apiopen.top/', // 接口的域名 secure: false, // 如果是https接口,需要配置这个参数 changeOrigin: true, // 如果接口跨域,需要进行这个参数配置 pathRewrite: { '^/api/a': '/' // '/api/a/user' =='localhost:8080/user' } } },
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。