This commit is contained in:
nguyen van thai
2024-07-16 22:54:15 +07:00
parent 6f571d9549
commit 5f9525371d
6 changed files with 24 additions and 20 deletions
+3 -2
View File
@@ -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