出现报错Duplicate keys detected: 'xxx'. This may cause an update error. 解决方法:保证key唯一 详细描述及解决方案:https://blog.csdn.net/sinat_42888557/article/details/108102379
router.afterEach((to,from,next)=>{ window,scrollTo(0,0) })