From 46a0fb1d9ab9a48a40a7c8cc9d8917bf271713de Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期六, 26 十月 2024 12:17:28 +0800
Subject: [PATCH] 修改了对应bug

---
 ruoyi-ui/src/views/index.vue |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/ruoyi-ui/src/views/index.vue b/ruoyi-ui/src/views/index.vue
index a38b201..568adcb 100644
--- a/ruoyi-ui/src/views/index.vue
+++ b/ruoyi-ui/src/views/index.vue
@@ -78,8 +78,12 @@
       getUserProfile().then(response => {
         this.user = response.data;
       });
+	  
 	  let clanId = this.$store.state.user.clanId
-	//  alert(clanId)
+	  if(clanId==null)
+	  {
+		//alert(clanId)
+		return}
       listRoot(10,clanId).then(response =>{
         this.rootList =response.data;
 
@@ -103,6 +107,8 @@
         "url": mpdata['url']!=null?'https://www.bendudu.com:8080/'+mpdata['url']:tp,
         "purl": mpdata['spouse'] != null ? (mpdata['spouse'].url!=null? 'https://www.bendudu.com:8080/'+mpdata['spouse'].url:tp):tp,
         "id": mpdata['userId'],
+		"spid": mpdata['spouseId'] != null ? mpdata['spouseId'] : '',
+		
         "link": mpdata['oldName'],
         "children": []
       };
@@ -114,6 +120,8 @@
             "prop": mpdata['childList'][i]['oldName'],
             "url": mpdata['childList'][i]['url']!=null?'https://www.bendudu.com:8080/'+mpdata['childList'][i]['url']:tp,
              "id": mpdata['childList'][i]['userId'],
+			 "spid": mpdata['childList'][i]['spouseId'] != null ? mpdata['childList'][i]['spouseId'] : '',
+			 
 			 "purl": (mpdata['childList'][i]['spouse'] != null ) ?( mpdata['childList'][i]['spouse'].url!= null?'https://www.bendudu.com:8080/'+mpdata['childList'][i]['spouse'].url:tp):tp,
             "link": mpdata['childList'][i]['oldName'],
             "children": []

--
Gitblit v1.9.1