[Vuejs]-Vue.js not re-rendering when file state changes

0👍

You have a reactivity caveat, try to use this.$set :

this.$set(this.service,'image' , this.$refs.img_input.files[0]);

or you should initialize image property like :

data() {
  return {
    service: {image:null},
  };
},

Leave a comment