diff --git a/sgzb-ui/src/store/modules/user.js b/sgzb-ui/src/store/modules/user.js index 1a0ee598..e7c921b5 100644 --- a/sgzb-ui/src/store/modules/user.js +++ b/sgzb-ui/src/store/modules/user.js @@ -1,7 +1,7 @@ import { login, logout, getInfo, refreshToken, checkCode, loginByMall } from '@/api/login' import { getToken, setToken, setExpiresIn, removeToken } from '@/utils/auth' import { Notification, MessageBox, Message, Loading } from 'element-ui' -import { encrypt} from '@/utils/jsencrypt' +import { encrypt } from '@/utils/jsencrypt' const user = { state: { @@ -41,7 +41,8 @@ const user = { // 登录 Login({ commit }, userInfo) { const username = userInfo.username.trim() - const password = encrypt(userInfo.password) + // const password = encrypt(userInfo.password) + const password = userInfo.password const code = userInfo.code const uuid = userInfo.uuid return new Promise((resolve, reject) => {