fix 绑定手机完成执行回调
This commit is contained in:
parent
b8daaa575c
commit
f249469894
|
|
@ -5,6 +5,5 @@ export default function render(props: WebComponentProps<EntityDict, 'mobile', tr
|
|||
mobiles?: EntityDict['mobile']['OpSchema'][];
|
||||
allowRemove: boolean;
|
||||
tokenMobileId?: string;
|
||||
}, {
|
||||
goAddMobile: () => void;
|
||||
}>): React.JSX.Element;
|
||||
onFinish: () => void;
|
||||
}, {}>): React.JSX.Element;
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ import { MobileOutlined, DeleteOutlined } from '@ant-design/icons';
|
|||
import Style from './mobile.module.less';
|
||||
import MobileLogin from '../login';
|
||||
export default function render(props) {
|
||||
const { mobiles, allowRemove, tokenMobileId } = props.data;
|
||||
const { goAddMobile, removeItem, recoverItem, execute } = props.methods;
|
||||
const { mobiles, allowRemove, tokenMobileId, onFinish } = props.data;
|
||||
const { removeItem, recoverItem, execute } = props.methods;
|
||||
const [open, setOpen] = useState(false);
|
||||
return (<div className={Style.container}>
|
||||
{mobiles && mobiles.length > 0 ? (<>
|
||||
|
|
@ -49,6 +49,7 @@ export default function render(props) {
|
|||
}}>
|
||||
<MobileLogin callback={() => {
|
||||
setOpen(false);
|
||||
onFinish && onFinish();
|
||||
}} oakPath="$mobile/me-mobile/login" oakAutoUnmount={true}/>
|
||||
</Popup>
|
||||
</div>);
|
||||
|
|
|
|||
|
|
@ -16,14 +16,13 @@ export default function render(
|
|||
mobiles?: EntityDict['mobile']['OpSchema'][];
|
||||
allowRemove: boolean;
|
||||
tokenMobileId?: string;
|
||||
onFinish: () => void;
|
||||
},
|
||||
{
|
||||
goAddMobile: () => void;
|
||||
}
|
||||
{}
|
||||
>
|
||||
) {
|
||||
const { mobiles, allowRemove, tokenMobileId } = props.data;
|
||||
const { goAddMobile, removeItem, recoverItem, execute } = props.methods;
|
||||
const { mobiles, allowRemove, tokenMobileId, onFinish } = props.data;
|
||||
const { removeItem, recoverItem, execute } = props.methods;
|
||||
const [open, setOpen] = useState(false);
|
||||
|
||||
return (
|
||||
|
|
@ -97,6 +96,7 @@ export default function render(
|
|||
<MobileLogin
|
||||
callback={() => {
|
||||
setOpen(false);
|
||||
onFinish && onFinish();
|
||||
}}
|
||||
oakPath="$mobile/me-mobile/login"
|
||||
oakAutoUnmount={true}
|
||||
|
|
|
|||
Loading…
Reference in New Issue