title: Vue js computed result not accurate
body: <p>I am trying to implement a vote button with vue js, when user click "Vote" will send axios request to server and store the data, then return json back. Same with unvote.
  I also check if the user is voted, the button should change to Unvote like facebook.
  So far the vote and unvote button is work correctly.
  But i found a problems which is the voted features is not working. If user voted, after refresh page it will change back to "Vote", but it should be Unvote. But if the button was clicked, in database will showing the vote was deleted. Mean it should be problems of computed. But i am struggle on it since i not really know vue js.</p>
  
  <p>This is my vue components.</p>
  
  <pre><code>&lt;template&gt;
  
  &lt;a href="#" v-if="isLiked" @click.prevent="unlike(comment)"&gt;
      &lt;span&gt;UnVote&lt;/span&gt;
  &lt;/a&gt;
  
  &lt;a href="#" v-else @click.prevent="like(comment)"&gt;
      &lt;span&gt;Vote&lt;/span&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;script&gt;
  export default{
      props: ['comment','liked'],
      data: function() {
          return {
              isLiked: '',
          }
      },
      mounted() {
          axios.get('/comment/'+ this.comment.id +'/check', {})
              .then((response) =&gt; {
                  this.liked = response.data;//here will get json "true" or "false"
  
              });
  
          this.isLiked = this.liked ? true : false;
      },
      computed: {
          isLike() {
              return this.liked;
          },
      },
      methods: {
          like(comment) {
              axios.post('/comment/'+ comment.id +'/like')
                  .then(response =&gt; this.isLiked = true)
                  .catch(response =&gt; console.log(response.data));
          },
          unlike(comment) {
              axios.post('/comment/'+ comment.id +'/unlike')
                  .then(response =&gt; this.isLiked = false)
                  .catch(response =&gt; console.log(response.data));
          },
      }
  
  }
  </code></pre>
  
  <p></p>