From 70d56d7abee4786ceca3ba7b54c4e439091c17c3 Mon Sep 17 00:00:00 2001
From: zrj <646384940@qq.com>
Date: Wed, 17 Jul 2024 16:18:20 +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 359f37f..57ff4af 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