mounted(){
       history.pushState(null, null, document.URL);
       window.addEventListener('popstate', function () {
         history.pushState(null, null, document.URL);
       });
   }

 

 
vue  禁止浏览器自带的后退功能
 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-21
  • 2021-07-30
  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
  • 2021-07-17
相关资源
相似解决方案