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

修改为history模式,本地测试的页面无法访问 #76

Open
zhuyuanwen opened this issue May 22, 2018 · 1 comment
Open

修改为history模式,本地测试的页面无法访问 #76

zhuyuanwen opened this issue May 22, 2018 · 1 comment

Comments

@zhuyuanwen
Copy link

zhuyuanwen commented May 22, 2018

@bluefox1688
实际项目中,访问路径需要去掉“#”。

原本的hash模式路径http://localhost:8091/views/router/details.html#/list,
在前端修改为mode: "history"后无法访问,而http://localhost:8091/views/router/details.html/list
路径也不对。

请问该怎么解决? (本身的跟地址http://localhost:8091/views/router/details.html,
在history模式下,也是无法访问的。)

已经在2个单页面的项目中,尝试过history模式,将原版的#去除,就可以访问了。但是这个多页面的不可以。

@zhuyuanwen
Copy link
Author

zhuyuanwen commented Jun 5, 2018 via email

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

1 participant