1.传递
this.
r
o
u
t
e
r
.
p
u
s
h
(
p
a
t
h
:
′
/
i
t
p
l
a
n
/
i
t
p
l
a
n
D
e
t
a
i
l
′
,
q
u
e
r
y
:
y
e
a
r
I
d
:
′
x
x
x
′
,
)
2.
获
取
t
h
i
s
.
router.push({ path: '/itplan/itplanDetail', query: { yearId: 'xxx', } }) 2.获取 this.
router.push(path:′/itplan/itplanDetail′,query:yearId:′xxx′,)2.获取this.route.query(‘yearId’)
vue,push路由跳转传参
最新推荐文章于 2024-09-25 06:14:45 发布