title: How can I update computed from method in vue component?
body: <p>My component vue like this :</p>
  
  <pre><code>&lt;template&gt;
      &lt;div&gt;
          &lt;ul class="list-inline list-photo"&gt;
              &lt;li v-for="item in items"&gt;
                  &lt;template v-if="photoList[item]"&gt;
                      ...
                          &lt;img :src="baseUrl+'/img/products/thumbs/'+photo(item)"&gt;
                      ...
                  &lt;/template&gt;
              &lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
  &lt;/template&gt;
  &lt;script&gt;
      export default {
          props: ['product'],
          data() {
                  return {
                      items: [1,2,3,4,5],
                      baseUrl: window.Laravel.baseUrl,
                      photoList: this.product.photo_list.reduce(function(acc, p) { acc[Number(p.id)] = p; return acc;}, {}),
                  }
          },
          computed: {
              photo(item) {
                  return (this.photoList) ? photoList[item].name : ''
              }
          },
          methods: {
              createImage(item, response) {
                  ...
                  this.photo(item) = photoAdded.name
              },
          }
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>If the createImage method is executed, I want to update the photo on a computed with a value of photoAdded.name. </p>
  
  <p>Whether it can be done?</p>