添加修改头像功能

This commit is contained in:
Jerry
2024-08-15 14:55:26 +08:00
parent 8a64b28099
commit 3599f28910
10 changed files with 112 additions and 14 deletions

View File

@@ -170,9 +170,10 @@ const uploadWidgetImpl = reactive(
const getDisabledStatus = () => {
if (form().isEdit) return true;
const formWidgetAuth: ANY_OBJECT | null = form().formAuth && form().formAuth() && form().formAuth().pc
? form().formAuth().pc[pps.widget.variableName]
: null;
const formWidgetAuth: ANY_OBJECT | null =
form().formAuth && form().formAuth() && form().formAuth().pc
? form().formAuth().pc[props.widget.variableName]
: null;
if (formWidgetAuth && formWidgetAuth.disabled) return true;
return props.widget.props.disabled;
};

View File

@@ -355,9 +355,10 @@ const getWidgetProps = computed(() => {
});
const getDisabledStatus = () => {
const formWidgetAuth: ANY_OBJECT | null = form().formAuth && form().formAuth() && form().formAuth().pc
? form().formAuth().pc[pps.widget.variableName]
: null;
const formWidgetAuth: ANY_OBJECT | null =
form().formAuth && form().formAuth() && form().formAuth().pc
? form().formAuth().pc[pps.widget.variableName]
: null;
if (formWidgetAuth && formWidgetAuth.disabled) return true;
return pps.widget.props.disabled;
};