router.push 和 router.replace 都会返回一个 promise,所以你可以在导航完成后再重置查询条件。 `router.push({name: 'foo'}).then(() => resetQuery())`
阅读量:1
点赞量:0