//表单数据
export const formSchema: FormSchema[] = [{
field: 'sceneType',
label: '字典类型',
component: 'Select',
componentProps: {
options: scenariotypeOptions.value,
},
},]
类似上面scenariotypeOptions就是字典拿到但是空白
简单有效最外层
setTimeout(() => {
searchFormSchema[1].componentProps = {
options: scenarioOptions.value,
};
searchFormSchema[2].componentProps = {
options: scenariotypeOptions.value,
};
formSchema[1].componentProps = {
options: scenarioOptions.value,
};
formSchema[2].componentProps = {
options: scenariotypeOptions.value,
};
}, 500);