mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 20:29:35 +02:00
added checking on normal-token
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { BackendApiUrl } from '@/properties/Сonfig.js';
|
||||
|
||||
import { DeleteAllCookie } from "@/assets/js/storage/CookieStorage";
|
||||
|
||||
export async function Post(url = "", data = {}) {
|
||||
try {
|
||||
@@ -14,6 +14,7 @@ export async function Post(url = "", data = {}) {
|
||||
});
|
||||
|
||||
if (!response.ok) {
|
||||
DeleteAllCookie()
|
||||
console.log("Fetch error:", response.status);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user