Commit 40d84c2a authored by 崔佳豪's avatar 崔佳豪

fix: 站点切换异常

parent 049550be
Pipeline #66971 passed with stages
...@@ -338,7 +338,7 @@ class Site { ...@@ -338,7 +338,7 @@ class Site {
loginSite[token] = site; loginSite[token] = site;
localStorage.setItem('loginSite', JSON.stringify(loginSite)); localStorage.setItem('loginSite', JSON.stringify(loginSite));
const self = this; const self = this;
self.props.updateCurrentIndex && self.props.updateCurrentIndex(-1); // self.props.updateCurrentIndex && self.props.updateCurrentIndex(-1);
const login = new Login(this.props, () => { const login = new Login(this.props, () => {
self.setLoading(false); self.setLoading(false);
self.getCityStationsForUser().then(res => { self.getCityStationsForUser().then(res => {
...@@ -373,6 +373,7 @@ class Site { ...@@ -373,6 +373,7 @@ class Site {
} }
changeGroup(event, item, onChangeVisible, actionRef) { changeGroup(event, item, onChangeVisible, actionRef) {
debugger
event.persist(); event.persist();
const site = item ? item.site : event.target.dataset.site; const site = item ? item.site : event.target.dataset.site;
const { loginName } = this.globalConfig.userInfo; const { loginName } = this.globalConfig.userInfo;
......
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