fix(layout): 修复顶栏连点和头像菜单抖动,统一三中心侧栏加载态

This commit is contained in:
zhanjunhao
2026-11-27 16:59:53 +08:00
parent 3a0d9e15cd
commit 5a9d6ae3cb
18 changed files with 459 additions and 137 deletions
@@ -60,6 +60,10 @@ for (const path of [
mocks[path] = { __esModule: true, default: () => null };
const ServiceDashboard = () => null;
mocks['../ServiceDashboard'] = { __esModule: true, default: ServiceDashboard };
mocks['./useUserCenterRoutes'] = await loadFrontendModule(
new URL('../../src/pages/UserCenter/useUserCenterRoutes.js', import.meta.url),
mocks,
);
const UserCenter = (
await loadFrontendModule(
new URL('../../src/pages/UserCenter/index.jsx', import.meta.url),