33

修改vue源码实现动态路由缓存 动态路由

 4 years ago
source link: https://juejin.im/post/5e36c148f265da3e240b361b
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
修改vue源码实现动态路由缓存 动态路由 官网解读:我们经常需要把某种模式匹配到的所有路由,全都映射到同个组件。例如,我们有一个 User 组件,对于所有 ID 各不相同的用户,都要使用这个组件来渲染。那么,我们可以在 vue-router 的路由路径中使用

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK