Update staticid system for viewing news.

This commit is contained in:
yuanhau 2025-05-26 23:56:21 +08:00
parent 0ed7ca8f80
commit 9accdb28c1
6 changed files with 109 additions and 151 deletions

10
pages/apis.vue Normal file
View file

@ -0,0 +1,10 @@
<template>
<div
class="justify-center align-center text-center absolute inset-0 flex flex-col"
>
<h1 class="text-4xl text-bold">APIs</h1>
<div class="items flex flex-row flex-wrap">
<div class="item group"></div>
</div>
</div>
</template>

View file

@ -80,6 +80,7 @@ const globalWindowVal = ref(new Map());
const changeLangAnimation = ref(false);
const openArticlesArray = ref<any[]>([]);
const openArticlesId = ref(0);
const storeStaticArticleId = ref(0);
// Key Data
const menuItems = [
@ -393,6 +394,11 @@ const openArticles = async (slug: string) => {
});
openArticlesId.value += 1;
};
const getStaticArticleId = () => {
storeStaticArticleId.value += 1
return storeStaticArticleId.value
}
</script>
<template>
<div v-if="changeLangAnimation">
@ -514,6 +520,7 @@ const openArticles = async (slug: string) => {
@windowopener="openNewWindowViaApp($event)"
@loadValue=""
@openArticles="openArticles"
:staticid="getStaticArticleId"
:values="passedValues"
/>
</Suspense>