mirror of
https://gitee.com/orangeform/orange-admin.git
synced 2026-01-17 10:36:31 +08:00
添加修改头像功能
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user