📜  vue 路由器推送 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:15.278000             🧑  作者: 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' } })