fix: 修复博客文章目录渲染时机

This commit is contained in:
sunlei 2026-07-03 09:52:15 +08:00
parent 3d85b91c57
commit b320a553c8

View File

@ -219,7 +219,7 @@ export default defineComponent({
};
watch(
[shouldShowPostCatalogTabs, () => currentArticle.value?.id],
[shouldShowPostCatalogTabs, () => currentArticle.value?.id, () => currentArticle.value?.contentHtml, postContentRef],
([hasCatalog]) => {
resetSidebarTabForRoute(hasCatalog);
rebuildArgonCatalog(hasCatalog);