This commit is contained in:
saplf
2019-09-06 16:37:43 +08:00
parent 61810d9db4
commit 3c2edc1967
4 changed files with 35 additions and 10 deletions

View File

@@ -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);