Commit 19344d4c authored by 邓晓峰's avatar 邓晓峰

fix: 修复首页配置

parent e554f1cf
Pipeline #42444 skipped with stages
...@@ -227,7 +227,8 @@ export const defaultApp = () => { ...@@ -227,7 +227,8 @@ export const defaultApp = () => {
// createStoreage.set('init_web4', true) // createStoreage.set('init_web4', true)
// } // }
// let homepage = config.homepage.replace('civweb4/', ''); // let homepage = config.homepage.replace('civweb4/', '');
setDefaultMountApp(`/civbase/${config.homepage.replace(/^\//, '')}`); const url = !config.home ? `/civbase/civweb4/${config.homepage.replace(/^\//, '')}`: `/civbase/${config.homepage.replace(/^\//, '')}`;
setDefaultMountApp(url);
if(config.homepage.indexOf('civweb4') > -1) createStoreage.set('init_web4', true); if(config.homepage.indexOf('civweb4') > -1) createStoreage.set('init_web4', true);
} }
}; };
......
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