From 879a3501a8ab9767a59458ad8c337f6c25e2e7c4 Mon Sep 17 00:00:00 2001 From: lixuliang <lixuliang_hd@126.com> Date: 星期五, 22 十一月 2024 10:57:27 +0800 Subject: [PATCH] 代码更新 --- src/store/modules/user.js | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 542091c..516421e 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -1,5 +1,6 @@ import { login, logout, getInfo, refreshToken } from '@/api/login' import { getToken, setToken, setExpiresIn, removeToken } from '@/utils/auth' +import { encr } from "@/utils/jsencrypt"; const user = { state: { @@ -39,7 +40,11 @@ // 鐧诲綍 Login({ commit }, userInfo) { const username = userInfo.username.trim() - const password = userInfo.password + let pwd = encr(userInfo.password); + const password = pwd; + // const password = userInfo.password + const code = userInfo.code + const uuid = userInfo.uuid return new Promise((resolve, reject) => { login(username, password).then(res => { let data = res.data -- Gitblit v1.9.3