router删除路由参数

let newQuery = JSON.parse(JSON.stringify(route.query)) // 深拷贝
delete newQuery.aaa
delete newQuery.bbb
await router.replace({query: newQuery })
posted @ 2024-01-31 16:08  bitterteaer  阅读(17)  评论(0编辑  收藏  举报