Poll
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { H3Event } from 'h3';
|
||||
import Base from './base'
|
||||
import { useCookie } from 'nuxt/app';
|
||||
|
||||
export type PollOption = {
|
||||
id?: number; // Mã định danh
|
||||
@@ -22,8 +23,8 @@ export type PollOption = {
|
||||
const { items }: PollOption[] | any = await $fetch(`${apiUrl}/cms/poll-option/poll:${pollId}`, {
|
||||
method: 'GET',
|
||||
headers: {
|
||||
site: 1
|
||||
}
|
||||
site: Number(useCookie('site').value)
|
||||
},
|
||||
})
|
||||
|
||||
return items
|
||||
|
||||
Reference in New Issue
Block a user