Made a simple custom groq api thingy (just the settings page)

This commit is contained in:
yuanhau 2025-06-02 11:33:48 +08:00
parent 5392974261
commit 8eb19d7242
8 changed files with 86 additions and 41 deletions

View file

@ -9,20 +9,8 @@ const emit = defineEmits(["windowopener", "error", "loadValue"]);
try {
// await :(
const token = localStorage.getItem("token");
const { data, error: sendError } = await useFetch(
"/api/user/validateUserToken",
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
token: token,
lang: locale,
page: "a_window_application_using_blurPageBeforeLogin_component",
}),
},
);
if (sendError.value) {
error.value = true;