const { refresh } = useModel('@@initialState')
在上传成功后,调用refresh()
并设置显示头像的src为
const getTenantURL = () => {
if (currentTenant?.logo_file) {
return currentTenant.logo_file;
}
return '';
};
const { refresh } = useModel('@@initialState')
在上传成功后,调用refresh()
并设置显示头像的src为
const getTenantURL = () => {
if (currentTenant?.logo_file) {
return currentTenant.logo_file;
}
return '';
};