VUE3页面跳转路由跳转带参路由跳转
VUE3页面跳转路由跳转带参路由跳转第一种第二种第一种跳转:import {useRouter} from "vue-router";const router = useRouter()router.push({path: "/CommonHeader/childSysLeftMenu/processRoute",query: {craftbomId: data.id}})跳转页面参数接收impo
·
第一种
跳转:
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
更多推荐
已为社区贡献2条内容
所有评论(0)