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