📌  相关文章
📜  将参数添加到 url vue - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:36.998000             🧑  作者: Mango

代码示例2
// literal string path
router.push('home')

// object
router.push({ path: 'home' })

// named route
router.push({ name: 'user', params: { userId: '123' } })

// with query, resulting in /register?plan=private
router.push({ path: 'register', query: { plan: 'private' } })