[Vuejs]-Why does my js not run when when navigating back on Safari?

2👍

I fixed the problem by reloading the page on back navigation:

 window.onpageshow = function(event) {
      if (event.persisted) {
       window.location.reload() ;
   }
};

Leave a comment