diff --git a/backend/src/extensions/documentation/documentation/1.0.0/full_documentation.json b/backend/src/extensions/documentation/documentation/1.0.0/full_documentation.json index 8ddc5f2..eb5c73b 100644 --- a/backend/src/extensions/documentation/documentation/1.0.0/full_documentation.json +++ b/backend/src/extensions/documentation/documentation/1.0.0/full_documentation.json @@ -14,7 +14,7 @@ "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" }, - "x-generation-date": "2023-02-05T09:35:18.646Z" + "x-generation-date": "2023-02-06T05:44:46.596Z" }, "x-strapi-config": { "path": "/documentation", diff --git a/frontend/components/ArticlesContent/SideBar/Right/Catalogue.vue b/frontend/components/ArticlesContent/SideBar/Right/Catalogue.vue index 4905ede..9845d07 100644 --- a/frontend/components/ArticlesContent/SideBar/Right/Catalogue.vue +++ b/frontend/components/ArticlesContent/SideBar/Right/Catalogue.vue @@ -125,11 +125,11 @@ watch(isNavShown, (val) => { onMounted(() => { headerHeight = document.querySelector('.main-header').clientHeight const route = useRoute() - + window.addEventListener('scroll', onScroll) + window.addEventListener('scroll', scrollFixedCatalogue) setTimeout(() => { window.scroll(0, 0) - window.addEventListener('scroll', onScroll) - window.addEventListener('scroll', scrollFixedCatalogue) + firtstCatalogueTop.value = document.querySelector('.sticky-block-box').offsetTop if (route.hash) { const hashIndex = route.hash.slice(9) if (hashIndex !== -1) { @@ -139,7 +139,6 @@ onMounted(() => { a.click() } } - firtstCatalogueTop.value = document.querySelector('.sticky-block-box').offsetTop }, 1) }) diff --git a/frontend/components/ArticlesContent/index.vue b/frontend/components/ArticlesContent/index.vue index 4340d47..d1e0ed4 100644 --- a/frontend/components/ArticlesContent/index.vue +++ b/frontend/components/ArticlesContent/index.vue @@ -14,7 +14,7 @@ import themeStyle from './themeStyle' import highlightStyle from './highlightStyle' import type { IArticle } from '~~/types/IArticle' -const props = defineProps({ +defineProps({ article: { type: Object as () => IArticle, required: true, @@ -38,9 +38,6 @@ function transformToId() { } } -const route = useRoute() -const url = ref(`/api/articles/${route.params.id}`) -const { data: articleData } = await useFetch(url) onMounted(() => { transformToId() }) @@ -82,7 +79,7 @@ const { immerseState } = useImmerse()