Browse Source

超时弹出框切换用户崩溃bug

zhuth 6 years ago
parent
commit
b180a3e6f3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/components/common/login/relogin.jsx

+ 1 - 0
src/components/common/login/relogin.jsx

@@ -98,6 +98,7 @@ class Relogin extends React.Component {
             <div style={{ textAlign: 'end' }}>
                 <a style={{ textDecoration: 'underline' }} onClick={() => {
                     dispatch({ type: 'main/logout' });
+                    dispatch({ type: 'main/redirect', path: '/login' });
                 }}>
                     切换用户
                 </a>