Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chrome浏览器无法登录,控制台没有报错信息 #3669

Closed
ChouJoe opened this issue Apr 19, 2021 · 4 comments
Closed

chrome浏览器无法登录,控制台没有报错信息 #3669

ChouJoe opened this issue Apr 19, 2021 · 4 comments

Comments

@ChouJoe
Copy link

ChouJoe commented Apr 19, 2021

执行npm install build:prod命令编译项目后, 在chrome浏览器中点击login无反应,控制台也没报错, 但是在firefox浏览器中可以正常跳转。
chrome版本: 90.0.4430.72(正式版本) (64 位)
请问有人遇到这个问题吗

@ChouJoe ChouJoe changed the title CJROME chrome浏览器无法登录,控制台没有报错信息 Apr 19, 2021
@ChouJoe
Copy link
Author

ChouJoe commented Apr 19, 2021

点击login后控制台source中index.html显示no resource with given url found。
image
但是开发调试时是正常的

@ChouJoe
Copy link
Author

ChouJoe commented Apr 19, 2021

好吧 ,因为我是直接打开dist里的index.html,经过一番查找发现Chrome不支持在file//环境下set cookies,所以token并没有存到cookies中,造成登录后在router.beforeach中无法获取token,所以无法跳转路由

@Przeblysk
Copy link

自己 close 下吧

@ChouJoe ChouJoe closed this as completed Jul 19, 2021
@ChouJoe
Copy link
Author

ChouJoe commented Jul 19, 2021

close issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants