<el-form-item label="跳转分类">
<el-cascader
style="width: 300px;"
v-model="item.value"
:options="options"
:props= selectReleaseProps
@change="handleChange"></el-cascader>
</el-form-item>
data() {
return {
options: [],
selectReleaseProps: {
label: 'name',
value: 'code',
children: 'sub_list',
checkStrictly: true
},
}
}
getGoodPath().then(data =>{
let releasePath = [];
releasePath.push(data.ret_data[3])
this.options = [...releasePath];
})