fix: 对登录,网元信息新增更新数据加密

This commit is contained in:
TsMask
2024-08-15 10:10:09 +08:00
parent b3f40ee683
commit 409f9836a6
2 changed files with 6 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ export function login(data: Record<string, string>) {
method: 'post', method: 'post',
data: data, data: data,
whithToken: false, whithToken: false,
crypto: true,
}); });
} }
@@ -21,6 +22,7 @@ export function register(data: Record<string, any>) {
method: 'post', method: 'post',
data: data, data: data,
whithToken: false, whithToken: false,
crypto: true,
}); });
} }

View File

@@ -36,6 +36,8 @@ export function addNeInfo(data: Record<string, any>) {
url: `/ne/info`, url: `/ne/info`,
method: 'post', method: 'post',
data: data, data: data,
crypto: true,
timeout: 30_000,
}); });
} }
@@ -49,6 +51,8 @@ export function updateNeInfo(data: Record<string, any>) {
url: `/ne/info`, url: `/ne/info`,
method: 'put', method: 'put',
data: data, data: data,
crypto: true,
timeout: 30_000,
}); });
} }