title: Sometimes OK button doesn't work in alert in Vue page, what will be the problem?
body: <p>I made a button to use an api to restart an application</p>
  <p>That button works well. However, when it comes to alert popup, OK button sometimes doen't work. Even I click and click again, it doesn't close the alert popup. If I click it again after waiting a little moment like three seconds, then it close the alert popup normally. I don't know what will be the real problem, because I didn't experience this before. Can it be a browser(chrome)'s problem? Or vue framework's or nuxt framework's? I use nuxt framework in this code.</p>
  <p>The code is below</p>
  <p><strong>restartApp.vue</strong></p>
  <pre><code>&lt;template&gt;
      &lt;button&gt;restart&lt;/button&gt;
  &lt;/template&gt;
  &lt;script&gt;
  import {
    createRestart
  } from '@/api/agent'
  export default {    
      methods:{
          restart() {
              if (confirm('Restart agent?')) {
                  createRestart().then((res) =&gt; {
                      if (res.status == 200) {
                          alert('Agent is restarted')
                      }else{
                          alert(&quot;Agent isn't restarted&quot;)
                      }
                  }).catch((err)=&gt;{
                      alert('Agent has a error to restart &gt;&gt;', err)
                  })
              }
          },
      }
  }
  &lt;/script&gt;
  </code></pre>
  <p><strong>@/api/agent.js</strong></p>
  <pre><code>import axios from &quot;axios&quot;;
  import { headers } from &quot;../config/env&quot;;
  
  export function createRestart() {
    return axios.post(&quot;/api/agent/schedule/restart&quot;, {}, { headers });
  }
  </code></pre>
  <p><strong>/api.js</strong></p>
  <pre><code>//(...)
  router.post('/agent/schedule/restart', async (req, res) =&gt; {
      const axiosInstance = axios.create({ timeout:3000 });
      try {
        const result = await axiosInstance.post(
          &quot;http://agentUrl&quot; + '/v1/restart',
          {},
          config
        )
        res.json(result.data)
      } catch (err) {
        console.log(err)
        res.sendStatus(500)
      }
  })
  //(...)
  </code></pre>