From bfee44c01a3f5f6de96c9dfa1e12cef4700eaf5b Mon Sep 17 00:00:00 2001 From: shikeying <pxzsky@163.com> Date: 星期二, 11 四月 2023 20:18:12 +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