From cc1c0a396698648256c350f6f0fe2cb2f0b02c7e Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Wed, 27 Mar 2024 15:44:10 +0800
Subject: [PATCH] 许可按钮放出,备案审批按钮放出

---
 src/store/modules/user.js |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index d3e0ade..8512ba8 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -49,8 +49,9 @@
     LoginByUsername({ commit }, userInfo) {
       return new Promise((resolve, reject) => {
         loginByUsername(userInfo.tenantId, userInfo.username, md5(userInfo.password), userInfo.type, userInfo.key, userInfo.code).then(res => {
+          // console.log(res, 'res');
           const data = res.data;
-          console.log(data, '获取到token');
+          // console.log(data, 'data');
           if (data.error_description) {
             Message({
               message: data.error_description,
@@ -63,6 +64,7 @@
             commit('SET_USER_INFO', data);
             commit('DEL_ALL_TAG');
             commit('CLEAR_LOCK');
+            // console.log(data.access_token, data.refresh_toke, data.tenant_id, data, 'usedatas');
           }
           resolve();
         }).catch(error => {
@@ -237,7 +239,7 @@
     },
     SET_USER_INFO: (state, userInfo) => {
       if (validatenull(userInfo.avatar)) {
-        userInfo.avatar = "/img/bg/img-logo.png";
+        userInfo.avatar = "http://47.49.36.190:9000/zhba/upload/picture/mrtx.png";
       }
       state.userInfo = userInfo;
       setStore({ name: 'userInfo', content: state.userInfo })

--
Gitblit v1.9.3