前端某个页面配置跳转到另一个页面如何实现

发布于 2023-02-16 15:27:59

this.$router.push({ name: "todo" }); 我想配置$router.push()某个页面,但是无法通过

this.$router.options.routes.map((item)=>{
    console.log("routersss--------",item.path)
}) 拿到路由相关的信息, 还是直接push就能跳转了


我这边需要 单独配置路由再 push吗?(类似下面的)
PICTURE:/home/wadequ/.config/tencent-qq//AppData/file//sendpix1.jpg

查看更多

关注者
0
被浏览
542
1 个回答
wade.qu
wade.qu 2023-02-16
devops,容器,k8s,python

已经解决 配置push就行
this.$router.push({path:'/workflow/dutytickets'});

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览