Commit 05d8b13f authored by 杨思琦's avatar 杨思琦

重定向修改

parent ed120fb2
Pipeline #88012 passed with stages
...@@ -138,7 +138,6 @@ const HomePage = props => { ...@@ -138,7 +138,6 @@ const HomePage = props => {
const mapStateToProps = state => ({ const mapStateToProps = state => ({
global: state.getIn(['global', 'globalConfig']), global: state.getIn(['global', 'globalConfig']),
instance: state.getIn(['global', 'instance']), instance: state.getIn(['global', 'instance']),
currentSystemIndex: state.getIn(['global', 'currentSystemIndex']),
}); });
const mapDispatchToProps = dispatch => ({ const mapDispatchToProps = dispatch => ({
updateConfig(config) { updateConfig(config) {
......
...@@ -204,6 +204,10 @@ export const AppInitState = () => { ...@@ -204,6 +204,10 @@ export const AppInitState = () => {
window.history.pushState('', '', `/?client=${client}`); window.history.pushState('', '', `/?client=${client}`);
defaultApp(); defaultApp();
}); });
action.events.on('loginHomePage', event => {
window.history.pushState('', '', `/?client=${client}`);
defaultApp();
});
} }
return window.globalConfig.variableTheme; return window.globalConfig.variableTheme;
} }
......
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