Commit 7304072e authored by 崔佳豪's avatar 崔佳豪

fix: 子站切换无首页兼容

parent ea0fdef4
Pipeline #48867 skipped with stages
......@@ -309,9 +309,12 @@ class Login {
: '';
// 在云平台上,切换前后如果url一致会出问题
if(self.globalConfig.userInfo && self.globalConfig.userInfo.site) {
homepage = homepage || 'civweb4';
homepage += `${homepage.indexOf('|') > -1 ? '&' : '|' }_timestate=${Date.now().toString(16)}_${self.globalConfig.userInfo.site}`;
if (self.globalConfig.userInfo && self.globalConfig.userInfo.site) {
homepage = homepage
? `${homepage}${homepage.indexOf('|') > -1 ? '&' : '|'}_timestate=${Date.now().toString(16)}_${
self.globalConfig.userInfo.site
}`
: `civweb4/?_timestate=${Date.now().toString(16)}_${self.globalConfig.userInfo.site}`;
}
self.globalConfig = Object.assign(self.globalConfig, config, {
......
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