1、首先,给select加一个v-model,如:
<Select v-model="exam_name" >
<Option v-for="(item,key) in examName" :value="item.value" :key="key">
{{item.value}}
</Option>
</Select>
2、给v-model一个值。比如把后台返回的数据examName中的第一个,赋值给v-model,这样就可以了
ExamName:()=>{
this.exam_name = ‘‘;//APP ==this
this.$Api.getExamName({},result=>{//请求后台数据
this.examName =result;
this.exam_name = this.examName[0].value;
});
},