diff --git a/src/widget/associatedforms/associatedForms.vue b/src/widget/associatedforms/associatedForms.vue index a7acd0a8d..9c664fa3b 100644 --- a/src/widget/associatedforms/associatedForms.vue +++ b/src/widget/associatedforms/associatedForms.vue @@ -37,33 +37,13 @@ const props = withDefaults( const value1 = ref('') -const options = [ - { - value: 'Option1', - label: 'Option1', - }, - { - value: 'Option2', - label: 'Option2', - }, - { - value: 'Option3', - label: 'Option3', - }, - { - value: 'Option4', - label: 'Option4', - }, - { - value: 'Option5', - label: 'Option5', - }, -] +const options = ref([]) onMounted(()=>{ console.log(props.data.control) if(props.data.control.formid!=null&&props.data.control.formid!=""){ getAsfDataTitles().then(({ data }) => { console.log(data) + options.value = data }); }