Nuxt.js and anchors

岁酱吖の 提交于 2019-12-11 17:18:40

问题


How to deal with anchors (within the same page) in Nuxt.js ?

Problem is the URL stays always on the base localhost:3000/ I want to have anchors displayed on the URL too: localhost:3000/#anchor1, localhost:3000/#anchor2, localhost:3000/#anchor3 … etc.

It seems <nuxt-link :to=(/#anchorid)> Inner link </nuxt-link> does not do the job.

How to achieve this functionality?

来源:https://stackoverflow.com/questions/55196920/nuxt-js-and-anchors

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!