Currently, I am utilizing vue-sortable and draggable. Although I am able to drag an item above and change its position, the JSON data does not refresh. Here is the existing list:
<draggable v-model="this.$store.getters.getDocument.getDocumentAttributes">
<div class="panel panel-primary" v-for="(value, key, index) in this.$store.getters.getDocumentAttributes">
<div class="panel-body quote">
<span @click="removeSection(index,key)" class="pull-right glyphicon glyphicon-remove text-info"></span>
<p>{{value.key}}</p>
</div>
</div>
</draggable>
The list is fetched from Vuex store and although I can rearrange the elements visually, the underlying JSON data remains unchanged. How can I ensure that the JSON data gets updated as well?