Closed PeachScript closed 8 years ago
感谢提供的解决方案,这个方案目前看来可以解决使用vue-router
后href
被覆盖的问题,但会导致该组件变为片段组件。请容我权衡一下,再次感谢支持!
不客气,该方案虽能直接解决问题但确实不够优雅,如果你能有更好的方案那是再好不过了,也非常感谢你创建了这个项目 : D
对了,顺便描述一下我所遇到的问题,如果有时间的话请帮我看看是否可以在不修改源码的前提下解决:我引入了 vue-router
以使用前端路由,但在某一个页面,我需要进行站外跳转,比如跳转到 http://www.github.com/
,那这时候我就不得不使用 LinkCell
组件中的 link
来进行参数传递了,因为看了下 vue-router
的文档,发现 v-link
只能用于不同视图之间的跳转,不能用于站外链接(或者是我没仔细研读文档有漏掉的地方?),也是因为这样的一个特定需要,才发现了这个问题。Thks!
@adcentury 你好,上次的 PR 没有考虑到你说的片段组件的问题,解决方式比较粗鲁,所以后来我又思考了一下,换了一种相对来说更好的方式来解决这个问题 #38 ,你看看是否 OK。
@PeachScript thanks
38