VUE3页面跳转路由跳转带参路由跳转

第一种

跳转:

import {useRouter} from "vue-router";
const router = useRouter()
router.push({
                path: "/CommonHeader/childSysLeftMenu/processRoute",
                query: {craftbomId: data.id}
            })

跳转页面参数接收

import {useRouter} from "vue-router";
const router = useRouter()
route.query.craftbomId;

第二种

跳转:

import {useRouter} from "vue-router"
const router = useRouter();
router.push('roleToPermission?ids=' + ids)

跳转页面参数接收

import {useRouter} from "vue-router"
const route = useRouter()
const roleids = route.currentRoute.value.query.ids
Logo

前往低代码交流专区

更多推荐