< style type= "text/css" >
< / style >
< template >
<div class="changeMenu">
<CheckboxGroup @on-change="handle123($event)">
<Checkbox v-for="item1 in item" label="{{item.check}}" >
<span>{{item1.title}}</span>
<span>{{item1.message}}</span>
</Checkbox>
</CheckboxGroup>
</div>
< / template >
< script >
import axios from "axios";
export default {
name:"changeMenu",
data(){
return{
item:[
{
title:"",
message:"",
check:"000"
},
{
title:"",
message:"",
check:"001"
}
],
}
},
methods:{
handleAddUser () {
},
cancel () {
},
handle123($event){
console.log($event)
}
}
}
< / script >
then use it and report an error. Can"t label be added by traversal