')时,它可以工作,但是当我使用axios.get(‘http://localhost:3001/product'’)时,它显示错误GET http://localhost:3001/product net::ERR_CONNECTION_REFUSED不要为什么我得到这个错误API is not命中
我正在尝试将我的部署到运行Ubuntu的远程服务器上。我的应用程序在我的pc上运行得很好。现在,在线部署后,当前端尝试使用axios调用后端的api时,它会显示此错误,错误是: GET http://localhost:8000/posts net::ERR_CONNECTION_REFUSEDError at XMLHttpRequest.d.onerror