src/components/header/index.jsx
@@ -109,6 +109,7 @@ setTimeout(() => { sessionStorage.clear() this.props.history.replace('/login') window.location.reload() }, 2000) }) } @@ -116,7 +117,7 @@ logout = () => { const { dict } = this.state // 退出登录 let _this = this let that = this confirm({ title: dict['logout_query'] || '您确定要退出吗?', content: '', @@ -124,7 +125,7 @@ cancelText: dict['cancel'] || '取消', onOk() { sessionStorage.clear() _this.props.history.replace('/login') that.props.history.replace('/login') window.location.reload() }, onCancel() {}