参考链接:https://blog.csdn.net/weixin_50723565/article/details/127314567
import router from '@/router'
let routerName = router.app._route.name;//这个就是用来获取路由name
参考链接:https://blog.csdn.net/weixin_50723565/article/details/127314567
import router from '@/router'
let routerName = router.app._route.name;//这个就是用来获取路由name
本文标题:vue中在js文件如何获取路由name
本文链接:https://www.haomeiwen.com/subject/lfdvxdtx.html
网友评论