From fdca6c490ba0ba178e5b24a7a1c479e115067b4c Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Tue, 12 Nov 2024 13:18:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=86=E7=A0=81=E5=8E=BB=E6=8E=89=E5=8A=A0?= =?UTF-8?q?=E7=9B=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/UserApi.ts | 6 +++--- src/pages/UserManage.vue | 18 +++++++++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/api/UserApi.ts b/src/api/UserApi.ts index a485557..9e48a01 100644 --- a/src/api/UserApi.ts +++ b/src/api/UserApi.ts @@ -10,10 +10,10 @@ interface RegisterInfo { email?: string; } -const PasswordSult = '4a6d74126bfd06d69406fcccb7e7d5d9'; // 密码加盐 +//const PasswordSult = '4a6d74126bfd06d69406fcccb7e7d5d9'; // 密码加盐 function encryptPassword(password: string): string { const md5 = new Md5(); - return md5.appendStr(`${password}${PasswordSult}`).end() as string; + return md5.appendStr(password).end() as string; } /** @@ -152,7 +152,7 @@ export async function userPageQuery( userPaging(page: $page, query: $query) { total items { - id username nickname mobile email roles + id username nickname mobile email roles createdAt updatedAt } } } diff --git a/src/pages/UserManage.vue b/src/pages/UserManage.vue index 9f7f5fb..bc30cc2 100644 --- a/src/pages/UserManage.vue +++ b/src/pages/UserManage.vue @@ -17,7 +17,12 @@ >