From 52f1ca7317d50aa80e574f5a4dd157c4747dab22 Mon Sep 17 00:00:00 2001 From: Sjh <55341701@qq.com> Date: Wed, 26 Mar 2025 09:47:45 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=96=B0=E5=A2=9E]=E7=BB=91=E5=AE=9A=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../home/system-management/user/user.component.html | 9 ++++++--- .../home/system-management/user/user.component.ts | 12 +----------- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/src/app/home/system-management/user/user.component.html b/src/app/home/system-management/user/user.component.html index 1389096..ab860f5 100644 --- a/src/app/home/system-management/user/user.component.html +++ b/src/app/home/system-management/user/user.component.html @@ -69,9 +69,12 @@ {{item.creationTime | date:"yyyy-MM-dd"}} - - {{i}} - +
+ + {{i}} + +
+ diff --git a/src/app/home/system-management/user/user.component.ts b/src/app/home/system-management/user/user.component.ts index 25463bd..73aed75 100644 --- a/src/app/home/system-management/user/user.component.ts +++ b/src/app/home/system-management/user/user.component.ts @@ -86,18 +86,8 @@ export class UserComponent implements OnInit { this.http .get('/api/Users', { params: params, - responseType: 'text', }) - .subscribe((res: any) => { - const key = '258e0ec35ea5c5d2479156be98e9b3e2'; - function base64ToHex(base64: string): string { - const binary = atob(base64); // Base64 解码成二进制字符串 - return Array.from(binary) // 转换成字节数组 - .map((byte) => ('0' + byte.charCodeAt(0).toString(16)).slice(-2)) // 转16进制 - .join(''); - } - const publicKeyHex = base64ToHex(res); - const data = JSON.parse(sm4.decrypt(publicKeyHex, key) as any); + .subscribe((data: any) => { this.isLoading = false; this.userList = data.items;