diff --git a/ruoyi-ui/src/store/modules/user.js b/ruoyi-ui/src/store/modules/user.js index b32e9ef..ebb362c 100644 --- a/ruoyi-ui/src/store/modules/user.js +++ b/ruoyi-ui/src/store/modules/user.js @@ -52,7 +52,7 @@ const user = { }, SingleSign({ commit }, userInfo) { - const username = userInfo.username.trim(); + const username = userInfo.userName.trim(); const password = userInfo.password; let encodePs = encrypt(password)//加密 return new Promise((resolve, reject) => {