Before 10 месяцев назад
Родитель
Сommit
124a30f2d6

+ 1 - 0
public/svg/UK.svg

@@ -0,0 +1 @@
+<svg t="1727268394491" class="icon" viewBox="0 0 1536 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4828" width="200" height="200"><path d="M0 0h1536v1024H0V0z" fill="#00458F" p-id="4829"></path><path d="M1536 358.4H921.6V0h-307.2v358.4H0v307.2h614.4V1024h307.2V665.6H1536v-307.2z" fill="#FFFFFF" p-id="4830"></path><path d="M1536 905.6L176 0H0v118.4L1360 1024H1536v-118.4z" fill="#FFFFFF" p-id="4831"></path><path d="M0 905.6L1360 0H1536v118.4L176 1024H0v-118.4z" fill="#FFFFFF" p-id="4832"></path><path d="M1536 422.4H857.6V0h-179.2v422.4H0v179.2h678.4V1024h179.2V601.6H1536v-179.2z" fill="#CC3440" p-id="4833"></path><path d="M1536 1020.8v-80l-412.8-275.2h-121.6L1536 1020.8zM1536 0h-121.6L921.6 326.4v28.8h76.8L1536 0zM534.4 665.6L0 1020.8v3.2h115.2l496-329.6v-28.8h-76.8zM0 0v80l416 278.4h121.6L0 0z" fill="#CC3440" p-id="4834"></path></svg>

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
public/svg/br.svg


+ 1 - 0
public/svg/china.svg

@@ -0,0 +1 @@
+<svg t="1727268015623" class="icon" viewBox="0 0 1664 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="19824" width="200" height="200"><path d="M0 0h1664v1024H0z" fill="#D71618" p-id="19825"></path><path d="M268.8 411.52l102.4 74.24-39.04-120.32 102.4-74.88H307.84L268.8 169.6l-39.68 120.96H102.4l102.4 74.88-39.04 120.32 103.04-74.24zM569.6 188.8l47.36-11.52-44.8-18.56 3.2-48-30.72 37.12-45.44-18.56 25.6 40.96-30.72 37.12 46.72-11.52 25.6 40.96 3.2-48z m0 402.56l47.36-11.52-44.8-17.92 3.2-48.64-30.72 37.12-45.44-18.56 25.6 41.6-30.72 37.12 46.72-11.52L566.4 640l3.2-48.64z m112.64-277.12l48 7.68-33.92-34.56 22.4-42.88-43.52 21.76-33.28-35.2 6.4 48-42.88 21.76 47.36 8.32 7.04 48 22.4-42.88z m-14.72 173.44l39.68 26.88-16-45.44 37.76-30.08-48 1.92-16.64-46.08-13.44 46.72-48.64 1.92 40.32 26.88-13.44 46.72 38.4-29.44z" fill="#FFF100" p-id="19826"></path></svg>

+ 1 - 1
src/app/globals.scss

@@ -70,7 +70,7 @@ body{
     position: relative;
     height: 100%;
     color: #fff;
-    transform: translate(0,0);
+    //transform: translate(0,0);
     overflow: hidden;
 }
 .main-footer-header{

Разница между файлами не показана из-за своего большого размера
+ 1 - 0
src/components/Header/HerderTitle.tsx


+ 10 - 0
src/utils/client/actions.ts

@@ -0,0 +1,10 @@
+"use server";
+
+import { redirect } from "@/i18n";
+import { cookies } from "next/headers";
+
+const actions = async () => {
+    cookies().delete("Token");
+    redirect("/login");
+};
+export default actions;

+ 3 - 4
src/utils/client/index.ts

@@ -1,4 +1,4 @@
-import { removeCookies } from "@/utils/Cookies";
+import actions from "@/utils/client/actions";
 import Request from "./axios";
 
 const BASE_URL = process.env.NEXT_PUBLIC_BASE_URL;
@@ -16,7 +16,7 @@ const server = new Request({
         responseInterceptor: (config) => {
             return config;
         },
-        responseInterceptorCatch: (err) => {
+        responseInterceptorCatch: async (err) => {
             const { response } = err;
             if (!response) return err;
             // @ts-ignore
@@ -24,8 +24,7 @@ const server = new Request({
             switch (code) {
                 case 401:
                     localStorage.removeItem("globalStore");
-                    removeCookies("Token");
-                    window && (location.href = "/br/login");
+                    await actions();
                     break;
                 default:
                     return err;

Некоторые файлы не были показаны из-за большого количества измененных файлов