title: Do not allow exiting the form screen without saving
body: <p>how can I issue an alert to the user when he wants to leave the form with input filled without saving?</p>
  
  <p>I have already tried to implement something inside beforeDestroy, but I can not abort the output</p>
  
  <p>Can I abort the screen output inside the:</p>
  
  <pre><code>router.beforeEach((to, from, next) =&gt; {
  
    if(!store.getters.getStatusEdit){
      next(false);
    }
  
  })
  </code></pre>
  
  <p>But it did not work, because the vuex that runs inside beforeDestroy runs after the route.</p>
  
  <p>Anyone have any suggestions?</p>