action checkbox selected vue js

JavaScript
<input type="checkbox" 
       :value="mainCat.merchantId" 
       id="mainCat.merchantId" 
       v-model="checkedCategories" 
       @change="check($event)">

Source

Also in JavaScript: