Commit e554f1cf authored by 邓晓峰's avatar 邓晓峰

fix: 修复首页配置

parent dbbe2df4
Pipeline #42441 passed with stages
in 1 minute 33 seconds
...@@ -125,14 +125,16 @@ export const initMicroApps = () => { ...@@ -125,14 +125,16 @@ export const initMicroApps = () => {
//createStoreage.get('globalConfig'), //createStoreage.get('globalConfig'),
global: globalStore.global global: globalStore.global
}); });
const globalConfig = window.globalConfig;
globalConfig.homepage = globalConfig.homepage && /civweb4/.test(globalConfig.homepage) ? config.homepage.replace(/civweb4\//, ''): globalConfig.homepage
setGlobalState({ setGlobalState({
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
globalConfig: window.globalConfig, globalConfig: globalConfig,
//createStoreage.get('globalConfig'), //createStoreage.get('globalConfig'),
}); });
microStore.set("props:globalConfig", { microStore.set("props:globalConfig", {
globalConfig: window.globalConfig, globalConfig: globalConfig,
global: globalStore.global global: globalStore.global
}); });
start({ start({
......
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