zuozhengqing
2023-12-01 bbc5a0a0eb523d0277d55224f303088ebceb5f90
src/router/index.js
@@ -119,12 +119,6 @@
    // document.title = to.meta.title
  }
})
router.beforeEach((to, from, next) => {
  if(from.name==="overview"){
    localStorage.removeItem('pdfParams');
  }
  next();
});
// router.beforeEach((to, from, next) => {
// must call `next`
// console.log(to, from)