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 |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index cd54143..3538789 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -1,5 +1,6 @@
 import { login, logout, getInfo } from '@/api/login'
 import { getToken, setToken, removeToken } from '@/utils/auth'
+import {encrypt} from '@/utils/jsencrypt'
 
 const user = {
   state: {
@@ -32,11 +33,15 @@
     // 鐧诲綍
     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
+      const verifyType = userInfo.verifyType
+
       return new Promise((resolve, reject) => {
-        login(username, password, code, uuid).then(res => {
+        login(username, password, code, uuid, loginType, verifyType).then(res => {
           // console.log(res.data.token)
           // setToken(res.token)
           setToken(res.data.token)

--
Gitblit v1.9.1