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