From 93ebe9c7ac4e6d3f4fb992e42ae38949cfed50db Mon Sep 17 00:00:00 2001
From: Tcsm <1377977403@qq.com>
Date: 星期二, 09 五月 2023 00:17:08 +0800
Subject: [PATCH] 家根网页面实现点击不同的代数显示不同的头像数量
---
ruoyi-ui/src/store/modules/user.js | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/ruoyi-ui/src/store/modules/user.js b/ruoyi-ui/src/store/modules/user.js
index ab0a6fe..2816332 100644
--- a/ruoyi-ui/src/store/modules/user.js
+++ b/ruoyi-ui/src/store/modules/user.js
@@ -31,16 +31,23 @@
actions: {
// 鐧诲綍
Login({ commit }, userInfo) {
+
const username = userInfo.username.trim()
const password = userInfo.password
const code = userInfo.code
+
+
const uuid = userInfo.uuid
+
return new Promise((resolve, reject) => {
login(username, password, code, uuid).then(res => {
- setToken(res.token)
- commit('SET_TOKEN', res.token)
+
+ setToken(res.data.token)
+
+ commit('SET_TOKEN', res.data.token)
resolve()
}).catch(error => {
+ alert(error)
reject(error)
})
})
--
Gitblit v1.9.1