Commit 6ff4ced2 authored by 邓晓峰's avatar 邓晓峰

fix: 修复首页跳转路径

parent 7668e3f2
Pipeline #47911 passed with stages
in 8 minutes 16 seconds
...@@ -197,7 +197,8 @@ export const defaultApp = () => { ...@@ -197,7 +197,8 @@ export const defaultApp = () => {
const config = window.globalConfig; const config = window.globalConfig;
if (config && config.token) { if (config && config.token) {
let url = !config.home ? ((config.homepage === '' || _.isNull(config.homepage)) ? `/civbase/civweb4`: `/civbase/civweb4/${config.homepage.replace(/^\//, '').replace(/^civweb4\//, '')}`) : `/civbase/${config.homepage.replace(/^\//, '')}`; let url = !config.home ?
((config.homepage === '' || _.isNull(config.homepage)) ? `/civbase/civweb4`: (`/civbase/${config.homepage.replace(/^\//, '')}`)) : `/civbase/${config.homepage.replace(/^\//, '')}`;
setDefaultMountApp(url); setDefaultMountApp(url);
} }
}; };
......
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