Commit 35442c9e authored by 崔佳豪's avatar 崔佳豪

fix: 当前功能和下一个站点首页相同的问题

parent 74564964
Pipeline #48627 passed with stages
in 2 minutes 15 seconds
......@@ -361,6 +361,10 @@ class Site {
window.share && window.share.event && window.share.event.emit('reloadNotice');
const config = self.globalConfig;
let url = !config.home ? ((config.homepage === '' || _.isNull(config.homepage)) ? `/civweb4`: `/civweb4/${config.homepage.replace(/^\//, '').replace(/^civweb4\//, '')}`) : `/${config.homepage.replace(/^\//, '')}`;
// 在云平台上,切换前后如果url一致会出问题
if(config.userInfo && config.userInfo.site) {
url += `${url.indexOf('|') > -1 ? '&' : '|' }__site__=${config.userInfo.site}`;
}
self.props.history && self.props.history.push(url);
self.props && self.props.updateCollapsed && self.props.updateCollapsed(false);
window.share.event.emit('triggerMicro', this.props.global);
......
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