From 5d29703265144ce09c55f0558c21dd74ba97d8d9 Mon Sep 17 00:00:00 2001 From: liangxu Date: Wed, 8 Jul 2026 23:16:47 +0800 Subject: [PATCH] perf(admin-web): reduce redundant polling and cover active publish status Unify list/detail poll intervals to 5s and skip refetch while a query is already in flight, replacing broad invalidateQueries cascades with targeted refetches. Poll now also triggers on active publish status via the new hasActivePublishStatus helper. Dedupe concurrent refreshBrands calls with a shared promise and skip the redundant AppShell refresh when already initialized. Gate publish-record loading on popover open. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../src/components/ArticleDetailDrawer.vue | 43 +++++++++-------- .../src/components/ArticlePublishStatus.vue | 4 +- .../src/components/CustomArticleTab.vue | 18 ++++++-- .../src/components/InstantTaskTab.vue | 7 ++- .../src/components/ScheduleTaskTab.vue | 7 ++- apps/admin-web/src/layouts/AppShell.vue | 2 +- apps/admin-web/src/lib/display.ts | 12 +++++ apps/admin-web/src/stores/company.ts | 28 +++++++---- apps/admin-web/src/views/FreeCreateView.vue | 46 ++++++++++++++++++- apps/admin-web/src/views/ImitationView.vue | 12 +++-- apps/admin-web/src/views/TemplatesView.vue | 22 +++++++-- apps/admin-web/src/views/WorkspaceView.vue | 20 +++++--- 12 files changed, 167 insertions(+), 54 deletions(-) diff --git a/apps/admin-web/src/components/ArticleDetailDrawer.vue b/apps/admin-web/src/components/ArticleDetailDrawer.vue index 9004d83..0fb86c6 100644 --- a/apps/admin-web/src/components/ArticleDetailDrawer.vue +++ b/apps/admin-web/src/components/ArticleDetailDrawer.vue @@ -1,7 +1,7 @@