From 409f9836a64cf4ef2655f56bf9d81b4df0b37def Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Thu, 15 Aug 2024 10:10:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AF=B9=E7=99=BB=E5=BD=95=EF=BC=8C?= =?UTF-8?q?=E7=BD=91=E5=85=83=E4=BF=A1=E6=81=AF=E6=96=B0=E5=A2=9E=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=95=B0=E6=8D=AE=E5=8A=A0=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/login.ts | 2 ++ src/api/ne/neInfo.ts | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/api/login.ts b/src/api/login.ts index 225c9327..e7ff947d 100644 --- a/src/api/login.ts +++ b/src/api/login.ts @@ -7,6 +7,7 @@ export function login(data: Record) { method: 'post', data: data, whithToken: false, + crypto: true, }); } @@ -21,6 +22,7 @@ export function register(data: Record) { method: 'post', data: data, whithToken: false, + crypto: true, }); } diff --git a/src/api/ne/neInfo.ts b/src/api/ne/neInfo.ts index 49156044..2d66d90b 100644 --- a/src/api/ne/neInfo.ts +++ b/src/api/ne/neInfo.ts @@ -36,6 +36,8 @@ export function addNeInfo(data: Record) { url: `/ne/info`, method: 'post', data: data, + crypto: true, + timeout: 30_000, }); } @@ -49,6 +51,8 @@ export function updateNeInfo(data: Record) { url: `/ne/info`, method: 'put', data: data, + crypto: true, + timeout: 30_000, }); }