vue3路由跳转

vue3路由跳转

const router = useRouter();
function goTask(data) { let path = "/zxwork/week"; router.push({ path: path,
   query: {
        id: row.id,// 要传的参数
     },
 });
}

 

posted @ 2022-08-05 16:33  Spock123  阅读(38)  评论(0编辑  收藏  举报