vue3.0代理配置

vue2.0 时经常使用配置代理,proxyTable,如下图

3.0脚手架搭建项目后使用proxy,去掉了pathrewrite

两者的区别时 proxyTable 配置的代理/qrapi/会替换target里面的地址,而proxy配置的代理/api/会拼接在target后面

猜你喜欢

转载自blog.csdn.net/Tomoe20/article/details/88219264