登陆成功后,前端页面没反应,没跳转到home页面

来源:3-4 编写用户登陆程序(前端)

_页书

2021-09-13

后端运行成功,前端提示
The “next” callback was called more than once in one navigation guard when going from “/login” to “/home”. It should be called exactly one time in each navigation guard. This will fail in production.图片描述

写回答

3回答

Tracy__Mcgrady

2021-09-27

同学,我也遇到了这个问题。麻烦问一下,你是怎么解决的

1
5
慕哥7508233
是你电脑ip重置了,在main。Js中把ip该过来就好了
2022-01-25
共5条回复

随心_0014

2021-09-13

为什么没有选择使用composition api呢

0
0

神思者

2021-09-13

控制台报错信息截个图我看一下。

0
2
神思者
回复
_页书
这个问题的是Chrome浏览器升级之后,不附带本地Cookie到服务端。所以需要我们自己把Token写到请求头里面,你看手册的3-3和3-4,有对应方案。
2021-09-13
共2条回复

SpringBoot+Vue3 项目实战,打造企业级在线办公系统

以业务为基础,贯穿前后端技术栈,获得企业级项目开发经验

2237 学习 · 1264 问题

查看课程