VUE项目启动后,登录,发现报错:

Proxy error: Could not proxy request /user/login from localhost:8089 to http://***。**。**:8081/.
See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ENOTFOUND).

报错很明显,代理不过去,需要修改代理配置:

找到vue.config.js ,其中有配置代理的部分,改成正确的后端地址即可:

在这里插入图片描述


参考:

Logo

前往低代码交流专区

更多推荐