Vue-Cli开发 常见问题

获取路由数组

this.$router.options.routes

路由跳转

this.$router.push({ name:name})
this.$router.push({ path:path})

获取当前页面路由

this.$route.name
this.$route.path
|| 版权声明
作者:冰魄
链接:https://www.bp456.cn/62.html
声明:如无特别声明本文即为原创文章仅代表个人观点,版权归《冰魄博客》所有,欢迎转载,转载
THE END
二维码
海报
Vue-Cli开发 常见问题
获取路由数组 this.$router.options.routes 路由跳转 this.$router.push({ name:name}) this.$router.push({ path:path}) 获取当前页面路由 this.$route.nam……
<<上一篇
下一篇>>