From 72d9c686f6fd238d244c95ab37e4d26e8746a922 Mon Sep 17 00:00:00 2001
From: zrj <646384940@qq.com>
Date: Thu, 24 Oct 2024 18:13:19 +0800
Subject: [PATCH] 登录相关配置修改

---
 src/store/modules/user.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index ef76f61..63a933b 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -23,6 +23,7 @@
 import { formatPath } from '@/router/avue-router';
 import { ElMessage } from 'element-plus';
 import { encrypt } from '@/utils/sm2';
+import md5 from 'js-md5';
 
 const user = {
   state: {
@@ -45,7 +46,7 @@
           userInfo.deptId,
           userInfo.roleId,
           userInfo.username,
-          encrypt(userInfo.password),
+          md5(userInfo.password),
           userInfo.type,
           userInfo.key,
           userInfo.code

--
Gitblit v1.9.3