Commit eb52a26a authored by 杨思琦's avatar 杨思琦

fix: 首页为web4情况修改

parent c273e460
Pipeline #71654 passed with stages
......@@ -277,7 +277,8 @@ const Layout = props => {
setInitWebContent(ret);
});
event.on('finishInitWeb', path => {
window.history.replaceState(null, null, path.replace('widget', ''));
const urlParams = path.split('/').slice(-1) ?? 'civweb4';
window.history.replaceState(null, null, path.replace(urlParams, ''));
setTimeout(() => {
setInitWebContent(false);
window.history.replaceState(null, null, path);
......
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