From c192f834c4e092bc7c0f2722c343c25c1be619ab Mon Sep 17 00:00:00 2001
From: shikeying <pxzsky@163.com>
Date: 星期五, 07 四月 2023 17:32:33 +0800
Subject: [PATCH] 添加部分组件,添加拼图验证(未完成)

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

diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index 0d437c8..3538789 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -1,6 +1,6 @@
 import { login, logout, getInfo } from '@/api/login'
 import { getToken, setToken, removeToken } from '@/utils/auth'
-import log from "@/views/monitor/job/log";
+import {encrypt} from '@/utils/jsencrypt'
 
 const user = {
   state: {
@@ -33,7 +33,8 @@
     // 鐧诲綍
     Login({ commit }, userInfo) {
       const username = userInfo.username.trim()
-      const password = userInfo.password
+      // const password = userInfo.password
+      const password = encrypt(userInfo.password)
       const code = userInfo.code
       const uuid = userInfo.uuid
       const loginType = userInfo.loginType

--
Gitblit v1.9.1