fix: systeme metrics chart
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
<script setup>
|
||||
<script setup lang="ts">
|
||||
import {Icon as IconifyIcon} from "@iconify/vue"
|
||||
import { apiFetch } from "~/composables/useApiAuth"
|
||||
|
||||
const { data: messages, error } = await useFetch('/api/discord/messages', {
|
||||
interface DiscordMessage {
|
||||
id: string
|
||||
content: string
|
||||
author: { username: string }
|
||||
}
|
||||
|
||||
const { data: messages, error } = await useFetch<DiscordMessage[]>('/api/discord/messages', {
|
||||
$fetch: apiFetch,
|
||||
server: false
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user