From 15178bafd7aa1827e6c48fda8e2cc3b8df0bbf5e Mon Sep 17 00:00:00 2001
From: wujianwei <wjw@11.com>
Date: 星期一, 19 一月 2026 15:24:25 +0800
Subject: [PATCH] 新增前后端
---
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