if(window.location.href.includes('part_category_tags[]=2')) { this.checkedCategories.push(2); } Needed: depending on what the number is next to the part_category_tags[]= parameter, push this number into the array. also, it may be that such a parameter occurs twice like (Or not be at all):
&part_category_tags[]=3&part_category_tags[]=2 Without vue-router