Rollback server side set cookie

This commit is contained in:
2024-08-13 00:52:48 +08:00
parent 1130e6a574
commit 14f2bc0ee6
4 changed files with 12 additions and 6 deletions

View File

@ -131,7 +131,6 @@ async function readTickets({ page, itemsPerPage }: { page?: number; itemsPerPage
}),
{
headers: { Authorization: `Bearer ${useAtk().value}` },
credentials: "include",
},
)
if (res.status !== 200) {
@ -157,7 +156,6 @@ async function readEvents({ page, itemsPerPage }: { page?: number; itemsPerPage?
}),
{
headers: { Authorization: `Bearer ${useAtk().value}` },
credentials: "include",
},
)
if (res.status !== 200) {
@ -177,7 +175,6 @@ async function killTicket(item: any) {
const res = await fetch(`${config.public.solarNetworkApi}/cgi/auth/users/me/tickets/${item.id}`, {
method: "DELETE",
headers: { Authorization: `Bearer ${useAtk().value}` },
credentials: "include",
})
if (res.status !== 200) {
error.value = await res.text()