Commit 2a3d8c52 authored by 崔佳豪's avatar 崔佳豪

fix: redirect param

parent 9739452c
Pipeline #47643 passed with stages
in 2 minutes 38 seconds
...@@ -292,10 +292,12 @@ class Login { ...@@ -292,10 +292,12 @@ class Login {
const config = result.shift(); const config = result.shift();
const homeType = config.productType || 'civweb4'; const homeType = config.productType || 'civweb4';
// 产品类型和首页路径同时有才行 // 产品类型和首页路径同时有才行
const homepage = const homepage = params.getParams('redirect')
homeType && (params.getParams('redirect') || config.homepage) ? params.getParams('redirect')
: homeType && config.homepage
? `${homeType}/${params.getParams('redirect') || config.homepage}` ? `${homeType}/${params.getParams('redirect') || config.homepage}`
: ''; : '';
self.globalConfig = Object.assign(self.globalConfig, config, { self.globalConfig = Object.assign(self.globalConfig, config, {
theme: self.globalConfig.theme, theme: self.globalConfig.theme,
menu: self.globalConfig.menu, menu: self.globalConfig.menu,
......
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