element UI Cascader 级联选择器

<el-form-item label="跳转分类">
    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];
})

你可能感兴趣的:(Vue.js)