Skip to content

Commit

Permalink
fix: add useState key
Browse files Browse the repository at this point in the history
  • Loading branch information
Plumbiu committed Feb 14, 2023
1 parent fcdad85 commit 62220cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
},
"x-generation-date": "2023-02-13T02:10:09.109Z"
"x-generation-date": "2023-02-14T04:26:05.849Z"
},
"x-strapi-config": {
"path": "/documentation",
Expand Down
4 changes: 2 additions & 2 deletions frontend/components/ArticlesList/index.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
import type { IArticleItem } from '~~/types/IArticleItem'
const artlist = useState<IArticleItem[]>(() => [])
const artlist = useState<IArticleItem[]>('artlist', () => [])
const { data: articleAds } = (await useFetch('/api/global/ad'))
const isLoading = useState(() => true)
const isLoading = useState('isLoading', () => true)
const route = useRoute()
let pagenum = 1
const addArtListItem = useThrottle(async () => {
Expand Down
1 change: 0 additions & 1 deletion frontend/types/IArticleItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,4 @@ export {
IArticleAd,
IAuthor,
ICatalogue,
IAuthor,
}

0 comments on commit 62220cd

Please sign in to comment.