el-select的value传对象时,选中的问题
<el-select v-model="selectBrand" value-key="id" filterable remote reserve-keyword clearable placeholder="品牌名称/编号" :remote-method="remoteMethodBrand" @change="brandChange" > <el-option v-for="item in optionsBrand" :key="item.id" :label="item.fullNmae" :value="item"></el-option> </el-select>
在el-select中增加 value-key="id