Skip to content

如何去掉首页链接中的#号 #696

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

Closed
tonglei100 opened this issue Nov 11, 2018 · 3 comments
Closed

如何去掉首页链接中的#号 #696

tonglei100 opened this issue Nov 11, 2018 · 3 comments

Comments

@tonglei100
Copy link

首页的链接也有 /#/,看起来好别扭,有没有办法去掉?多谢~

@tonglei100 tonglei100 changed the title 如何去掉首页链接的的#号 如何去掉首页链接中的#号 Nov 12, 2018
@cheng-kang
Copy link
Contributor

可以将 routerMode 设置为 history. https://docsify.js.org/#/configuration?id=routermode

@tonglei100
Copy link
Author

我的站点是托管在 GithHub Pages 上的,设置了 history 模式,但服务端无法配置,这样会导致其他页面都是 loading 状态

其实我只是想首页去掉/#/就可以了,不知道这个有没有办法优化

@upupming
Copy link
Contributor

#720

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

3 participants