From 0a7d45e2e5717aba0b919ff93a23ba91447b8719 Mon Sep 17 00:00:00 2001
From: XiaoMo <a1300399510@qq.com>
Date: Thu, 6 Apr 2023 18:20:11 +0800
Subject: [PATCH] =?UTF-8?q?a1300399510@qq.com=20=E6=8F=90=E4=BA=A4?=
 =?UTF-8?q?=E4=BA=8E=202023/04/06=20-18:20:02?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/views/index/allSections/AllSections.vue | 15 ++++++++-------
 src/views/index/index.vue                   |  1 +
 2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/src/views/index/allSections/AllSections.vue b/src/views/index/allSections/AllSections.vue
index e905174..63d33c8 100755
--- a/src/views/index/allSections/AllSections.vue
+++ b/src/views/index/allSections/AllSections.vue
@@ -23,7 +23,10 @@
 
 		</div>
 		<div v-else style="margin:.64rem 0;">
-			<plate-navigation :stairname="plate.stairname" :subsectionsname="plate.subsectionsname"></plate-navigation>
+			<div @click.stop="backAll()">
+				<plate-navigation :stairname="plate.stairname" :subsectionsname="plate.subsectionsname"></plate-navigation>
+			</div>
+
 			<div style="margin:.4rem 0.35rem">
 				<index-list :list="invitationList"></index-list>
 			</div>
@@ -47,7 +50,6 @@ export default {
 			allActive: 0,
 			list: [{}],
 			postCollectionState: false,  // 收藏的请求的状态
-
 			fid: 0, // 是否有选中的板块id
 			invitationList: [], // 选中板块帖子的列表
 			invitationLimit: 10,
@@ -63,6 +65,10 @@ export default {
 	},
 
 	methods: {
+		backAll() {
+			this.fid = 0
+		},
+
 		allClick(index) {
 			this.allActive = index
 		},
@@ -110,13 +116,9 @@ export default {
 			});
 		},
 
-
 		// 点击选中板块 并获取列表
 		pitchPlate(fid, subsectionsname) {
-			console.log(fid);
-
 			this.fid = fid
-			console.log(subsectionsname, "subsectionsname");
 			this.plate = {
 				stairname: this.list[this.allActive].name,
 				subsectionsname,
@@ -132,7 +134,6 @@ export default {
 				limit: this.invitationLimit,
 				fid: this.fid
 			}).then(res => {
-				console.log(res, "res");
 				let data = res.data
 				this.invitationList = data.data
 				this.invitationCount = data.count
diff --git a/src/views/index/index.vue b/src/views/index/index.vue
index 1b0ab82..e335235 100755
--- a/src/views/index/index.vue
+++ b/src/views/index/index.vue
@@ -39,6 +39,7 @@ export default {
         let data = res.data
         this.favorite = data.favorite
         this.recommend = data.recommend
+        
       })
     },
   }