From be4c17512fe93511c21939d594c843b9594b1549 Mon Sep 17 00:00:00 2001 From: feige <791364011@qq.com> Date: 星期四, 29 八月 2024 22:51:39 +0800 Subject: [PATCH] 修改成昵称登录了 --- ruoyi-ui/src/store/modules/user.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/store/modules/user.js b/ruoyi-ui/src/store/modules/user.js index 7428be4..045498d 100644 --- a/ruoyi-ui/src/store/modules/user.js +++ b/ruoyi-ui/src/store/modules/user.js @@ -36,7 +36,7 @@ // 鐧诲綍 Login({ commit }, userInfo) { - const username = userInfo.username.trim() + const nickname = userInfo.nickName.trim() const password = userInfo.password const code = userInfo.code @@ -44,7 +44,7 @@ const uuid = userInfo.uuid return new Promise((resolve, reject) => { - login(username, password, code, uuid).then(res => { + login(nickname, password, code, uuid).then(res => { setToken(res.data.token) -- Gitblit v1.9.1