thainv-dev: Fix

This commit is contained in:
nguyen van thai
2024-07-17 10:35:35 +07:00
parent 5f9525371d
commit 795cd47e41
18 changed files with 78 additions and 43 deletions
+2 -1
View File
@@ -20,10 +20,11 @@ export type PollOption = {
const { apiUrl } = useRuntimeConfig().public
const { pollId }: any = getQuery(event)
const query = getQuery(event)
const { items }: PollOption[] | any = await $fetch(`${apiUrl}/cms/poll-option/poll:${pollId}`, {
method: 'GET',
headers: {
site: Number(useCookie('site').value)
site: getSite(query.site).toString()
},
})