VUE 登录不上,F12报错Uncaught (in promise) Error: Request failed with status code 404
1.Vue登录,F12 如下404错误POST http://localhost:8701/renren-fast/sys/login 404 (Not Found)Uncaught (in promise) Error: Request failed with status code 404at createError (createError.js?16d0:16)at settle (set
·
1.Vue登录,F12 如下404错误
POST http://localhost:8701/renren-fast/sys/login 404 (Not Found)
Uncaught (in promise) Error: Request failed with status code 404
at createError (createError.js?16d0:16)
at settle (settle.js?db52:18)
at XMLHttpRequest.handleLoad (xhr.js?ec6c:77)
解决方案:
vue前端项目 static>config>index,js中项目路径端口与后端renren-fast中端口不一致。这里是8701,而application,yml配置文件中却是8702,这里改成8702后访问生效。
更多推荐
已为社区贡献7条内容
所有评论(0)