Commit d13c8811 authored by yoyo837's avatar yoyo837 Committed by 陈帅

非使用字符串的地方 使用 push(location: LocationDescriptor, state?: LocationState)

parent c9d71c91
import { routerRedux } from 'dva/router';
import { stringify } from 'qs';
import { fakeAccountLogin } from '../services/api';
import { setAuthority } from '../utils/authority';
import { reloadAuthorized } from '../utils/Authorized';
import { getPageQuery, getQueryPath } from '../utils/utils';
import { getPageQuery } from '../utils/utils';
export default {
namespace: 'login',
......@@ -49,11 +50,12 @@ export default {
});
reloadAuthorized();
yield put(
routerRedux.push(
getQueryPath('/user/login', {
routerRedux.push({
pathname: '/user/login',
search: stringify({
redirect: window.location.href,
}),
})
)
);
},
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment