From c5eba95ed75ed93aac1865a6a66eacb767d29d53 Mon Sep 17 00:00:00 2001 From: Qing Date: Sat, 1 Jul 2023 13:10:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E9=A1=B9=E7=9B=AE=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Home/Home.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/Home/Home.vue b/src/components/Home/Home.vue index 1094914..3fd299a 100644 --- a/src/components/Home/Home.vue +++ b/src/components/Home/Home.vue @@ -531,10 +531,17 @@ export default { }, tabChange(tab) { if(tab.name=="first"){ + if(this.currentTabIndex!=null){ + this. typeChangeFun(this.currentTabIndex); + } this.ProjectLists(); } - else if (tab.name == "second") { - this.projectListsByCount(this.tabindex); + if (tab.name == "second") { + if(this.currentTabIndex!=null){ + this.projectListsByCount(this.currentTabIndex); + }else { + this.projectListsByCount(this.tabindex); + } } }, @@ -555,6 +562,7 @@ export default { }, typeChange(tab){ + this.currentTabIndex=tab.index; if(this.activeName==="first"){ this.typeChangeFun(tab.index); }