From 2a125174ea501d53c59f627347bdec9012928960 Mon Sep 17 00:00:00 2001 From: china <527956374@qq.com> Date: 星期一, 17 四月 2023 13:55:52 +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