Commit 9124267d authored by 崔佳豪's avatar 崔佳豪

fix: 首页触发两次问题

parent a17daeb7
...@@ -129,12 +129,12 @@ const GlobalHeaderRight = props => { ...@@ -129,12 +129,12 @@ const GlobalHeaderRight = props => {
url = `civweb4/${url.replace(/^\//, '').replace(/^civweb4\//, '')}` url = `civweb4/${url.replace(/^\//, '').replace(/^civweb4\//, '')}`
} }
window.share.event.emit('goHome', `/${url}`); window.share.event.emit('goHome', `/${url}`);
url ? ( // url ? (
window.share.event.emit('listenerMointer', { // window.share.event.emit('listenerMointer', {
label: '首页', // label: '首页',
url: url.replace(/^civweb4\//, ''), // url: url.replace(/^civweb4\//, ''),
}) // })
) : null; // ) : null;
}; };
......
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