📜  程序化导航 vue 路由器 - Javascript 代码示例

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

代码示例1
// 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' } })