Commit 5820d950 authored by WhatAKitty's avatar WhatAKitty Committed by 偏右

fix Unexpected use of 'location' no-restricted-globals error (#654)

parent b9002a37
...@@ -21,7 +21,7 @@ export default { ...@@ -21,7 +21,7 @@ export default {
// Login success after permission changes to admin or user // Login success after permission changes to admin or user
// The refresh will automatically redirect to the home page // The refresh will automatically redirect to the home page
// yield put(routerRedux.push('/')); // yield put(routerRedux.push('/'));
location.reload(); window.location.reload();
} }
}, },
*logout(_, { put }) { *logout(_, { put }) {
...@@ -35,7 +35,7 @@ export default { ...@@ -35,7 +35,7 @@ export default {
// yield put(routerRedux.push('/user/login')); // yield put(routerRedux.push('/user/login'));
// Login out after permission changes to admin or user // Login out after permission changes to admin or user
// The refresh will automatically redirect to the login page // The refresh will automatically redirect to the login page
location.reload(); window.location.reload();
}, },
}, },
......
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