Procházet zdrojové kódy

删除调试代码

fogwind před 1 týdnem
rodič
revize
0f699924e1
1 změnil soubory, kde provedl 0 přidání a 7 odebrání
  1. 0 7
      src/utils/bagisto/index.ts

+ 0 - 7
src/utils/bagisto/index.ts

@@ -188,7 +188,6 @@ export async function bagistoFetch<T>({
         Object.assign(baseHeaders, headers);
       }
     }
-    console.log('baseHeaders ------ ', baseHeaders);
     const result = await fetch(GRAPHQL_URL, {
       method: "POST",
       headers: baseHeaders,
@@ -338,14 +337,8 @@ export async function createUserToLogin(
       cache: "no-store",
       revalidate: 3600,
     });
-    console.log('-----------9527 s----------');
-    console.log(res);
-    console.log('-----------9527 e----------');
     return res.body.data.createCustomer.customer;
   } catch (error: any) {
-    console.log('-----------9528 s----------');
-    console.log(error);
-    console.log('-----------9528 e----------');
     throw new Error(error?.message || "Registration failed");
   }
 }