Inconsistency between front and back addresses of nodejs proxy

CSDN Q & A 2021-12-30 10:00:45 阅读数:389

inconsistency addresses nodejs proxy

Front end access is login route , But the path to the back end becomes /$%7Bbase%7D$%7Burl%7D

Front end access

this.$postRequest('/login',this.loginFrom).then(resp=>{ if(resp){ this.loading = false; // Storage users token const tokenStr = resp.obj.tokenHead +resp.obj.token; window.sessionStorage.setItem('tokenStr',tokenStr); // Jump page  this.$router.replace('/about'); } })

Refer to the answer 1:


Back end displayed path

Refer to the answer 2:
版权声明:本文为[CSDN Q & A]所创,转载请带上原文链接,感谢。