mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
Update staticid system for viewing news.
This commit is contained in:
parent
0ed7ca8f80
commit
9accdb28c1
6 changed files with 109 additions and 151 deletions
10
pages/apis.vue
Normal file
10
pages/apis.vue
Normal 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>
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue