From efff691306bb2c3d6e776fa312f54c34c7b4d5f9 Mon Sep 17 00:00:00 2001
From: 15815213711 <a13118667520@163.com>
Date: 星期二, 29 七月 2025 11:11:12 +0800
Subject: [PATCH] 修改ID,修改加密方式

---
 ui/admin-ui3/src/views/system/user/profile/resetPwd.vue |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui/admin-ui3/src/views/system/user/profile/resetPwd.vue b/ui/admin-ui3/src/views/system/user/profile/resetPwd.vue
index 48ced73..01ca3b6 100644
--- a/ui/admin-ui3/src/views/system/user/profile/resetPwd.vue
+++ b/ui/admin-ui3/src/views/system/user/profile/resetPwd.vue
@@ -21,7 +21,7 @@
 import useCurrentInstance from "@/utils/useCurrentInstance";
 import {reactive, ref} from "vue";
 import {ElForm} from "element-plus";
-import { sm3 } from "sm-crypto";
+import {encryptSm4} from "@/utils/Sm4Utils";
 
 const { proxy } = useCurrentInstance();
 const pwdRef = ref<InstanceType<typeof ElForm>>();
@@ -48,7 +48,7 @@
 function submit() {
   pwdRef.value!.validate(valid => {
     if (valid) {
-      updateUserPwd({oldPassword:sm3(user.oldPassword!) ,newPassword:sm3( user.newPassword!)}).then(response => {
+      updateUserPwd({oldPassword:encryptSm4(user.oldPassword!) ,newPassword:encryptSm4( user.newPassword!)}).then(response => {
         proxy.$modal.msgSuccess("淇敼鎴愬姛");
       });
     }

--
Gitblit v1.8.0