正在显示
7 个修改的文件
包含
7 行增加
和
25 行删除
1 | 1 | import { routerRedux } from 'dva/router'; |
2 | -import { stringify } from 'query-string'; | |
3 | 2 | import { getPageQuery } from './utils/utils'; |
4 | 3 | import { setAuthority } from './utils/authority'; |
5 | 4 | import { reloadAuthorized } from './utils/Authorized'; |
... | ... | @@ -44,25 +43,6 @@ export default { |
44 | 43 | *getCaptcha({ payload }, { call }) { |
45 | 44 | yield call(getFakeCaptcha, payload); |
46 | 45 | }, |
47 | - | |
48 | - *logout(_, { put }) { | |
49 | - yield put({ | |
50 | - type: 'changeLoginStatus', | |
51 | - payload: { | |
52 | - status: false, | |
53 | - currentAuthority: 'guest', | |
54 | - }, | |
55 | - }); | |
56 | - reloadAuthorized(); | |
57 | - yield put( | |
58 | - routerRedux.push({ | |
59 | - pathname: '/user/login', | |
60 | - search: stringify({ | |
61 | - redirect: window.location.href, | |
62 | - }), | |
63 | - }) | |
64 | - ); | |
65 | - }, | |
66 | 46 | }, |
67 | 47 | |
68 | 48 | reducers: { | ... | ... |
请
注册
或
登录
后发表评论