fix: 修复单选题报错问题

This commit is contained in:
sudoooooo 2024-05-23 16:21:54 +08:00
parent 57ec0b3b7f
commit ae58f9e06d

View File

@ -44,7 +44,7 @@ const watchValue = computed(() => props.formConfig.value)
watch(watchOptionOrigin, (newVal) => { watch(watchOptionOrigin, (newVal) => {
const key = props.formConfig.key const key = props.formConfig.key
const extraLen = props.moduleConfig?.extraOptions.length const extraLen = props.moduleConfig?.extraOptions?.length
if (key === 'randomSort' && newVal && extraLen === 0) { if (key === 'randomSort' && newVal && extraLen === 0) {
emit(FORM_CHANGE_EVENT_KEY, { key: 'randomSort', value: false }) emit(FORM_CHANGE_EVENT_KEY, { key: 'randomSort', value: false })