commit:修复bug

This commit is contained in:
Jerry
2024-08-14 11:09:28 +08:00
parent b00cd7a392
commit 7b24385a08
3 changed files with 16 additions and 6 deletions

View File

@@ -143,9 +143,8 @@ export const useForm = (props: ANY_OBJECT, formRef: Ref<FormInstance> | null = n
}
};
const getWidgetVisible = widget => {
const formWidgetAuth: ANY_OBJECT | null = formAuth.value
? formAuth.value.pc[widget.variableName]
: null;
const formWidgetAuth: ANY_OBJECT | null =
formAuth.value && formAuth.value.pc ? formAuth.value.pc[widget.variableName] : null;
if (formWidgetAuth && formWidgetAuth.hide) return false;
return true;
};