mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 21:14:23 +00:00
Made a simple custom groq api thingy (just the settings page)
This commit is contained in:
parent
5392974261
commit
8eb19d7242
8 changed files with 86 additions and 41 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue