vue使用select間相互繫結
阿新 • • 發佈:2020-07-21
讓這兩個select相互繫結,讓roleOptions選取值後,worklist彈出得是roleOptions值
<el-select v-model="postForm.projectName" placeholder="請選擇" @change="getList(postForm)"> <el-option v-for="item in roleOptions" :key="item.key" :label="item.label" :value="item.key"> </el-option> <el-select v-model="postForm" placeholder="請選擇" value-key="id" @change="getList2(postForm)">