thainv-dev: Fix
This commit is contained in:
@@ -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()
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user