Inviter
This commit is contained in:
@@ -64,11 +64,22 @@ const model: Model = {
|
||||
pageStep = PageStep.Login;
|
||||
break;
|
||||
}
|
||||
yield put({ type: 'onUpdateState', pageStep });
|
||||
yield put({
|
||||
type: 'onUpdateState',
|
||||
pageStep,
|
||||
password: '',
|
||||
pwdConfirm: '',
|
||||
verifyCode: '',
|
||||
});
|
||||
},
|
||||
|
||||
*load(_, { call, put, all }) {
|
||||
yield put({ type: 'onUpdatePageState', payload: PageState.Pending });
|
||||
*load(_, { call, put, all, select }) {
|
||||
const { location } = yield select((state: any) => state.router);
|
||||
let inviter = '';
|
||||
if (location.query && location.query.inviteCode) {
|
||||
inviter = location.query.inviteCode;
|
||||
}
|
||||
yield put({ type: 'onUpdateState', pageState: PageState.Pending, inviter });
|
||||
|
||||
try {
|
||||
const areacodes = yield call(getAreaCodes);
|
||||
|
||||
Reference in New Issue
Block a user