diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 6c1779b..a1ccc35 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -38,7 +38,7 @@ const user = { actions: { // 登录 Login({ commit }, userInfo) { - const username = userInfo.username.trim() + const username = encrypt(userInfo.username.trim()) const password = encrypt(userInfo.password) const code = userInfo.code const uuid = userInfo.uuid