fix(layout): 修复顶栏连点和头像菜单抖动,统一三中心侧栏加载态
This commit is contained in:
@@ -4,6 +4,7 @@ import { isAuthPagePath } from '../../../helpers/auth';
|
||||
import { useHeaderBar } from '../../../hooks/common/useHeaderBar';
|
||||
import { useNotifications } from '../../../hooks/common/useNotifications';
|
||||
import { useNavigation } from '../../../hooks/common/useNavigation';
|
||||
import { useTopNavigation } from '../../../hooks/common/useTopNavigation';
|
||||
import { usePartnerWorkspaceEntry } from '../../../hooks/common/usePartnerWorkspaceEntry';
|
||||
import MobileMenuButton from './MobileMenuButton';
|
||||
import HeaderLogo from './HeaderLogo';
|
||||
@@ -69,6 +70,7 @@ const HeaderBar = ({ onMobileMenuToggle, drawerOpen }) => {
|
||||
const mainNavLinks = configuredNavLinks.filter(
|
||||
(link) => link.itemKey !== 'keyManagement',
|
||||
);
|
||||
const followTopLink = useTopNavigation();
|
||||
|
||||
const [hasOpenedNotice, setHasOpenedNotice] = useState(false);
|
||||
useEffect(() => {
|
||||
@@ -146,6 +148,7 @@ const HeaderBar = ({ onMobileMenuToggle, drawerOpen }) => {
|
||||
<MobileNavMenu
|
||||
mainNavLinks={mainNavLinks}
|
||||
userState={userState}
|
||||
followTopLink={followTopLink}
|
||||
t={t}
|
||||
/>
|
||||
)}
|
||||
@@ -157,6 +160,7 @@ const HeaderBar = ({ onMobileMenuToggle, drawerOpen }) => {
|
||||
isMobile={isMobile}
|
||||
isLoading={isLoading}
|
||||
userState={userState}
|
||||
followTopLink={followTopLink}
|
||||
/>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user