首页项目列表展示
This commit is contained in:
@@ -531,11 +531,18 @@ export default {
|
|||||||
},
|
},
|
||||||
tabChange(tab) {
|
tabChange(tab) {
|
||||||
if(tab.name=="first"){
|
if(tab.name=="first"){
|
||||||
|
if(this.currentTabIndex!=null){
|
||||||
|
this. typeChangeFun(this.currentTabIndex);
|
||||||
|
}
|
||||||
this.ProjectLists();
|
this.ProjectLists();
|
||||||
}
|
}
|
||||||
else if (tab.name == "second") {
|
if (tab.name == "second") {
|
||||||
|
if(this.currentTabIndex!=null){
|
||||||
|
this.projectListsByCount(this.currentTabIndex);
|
||||||
|
}else {
|
||||||
this.projectListsByCount(this.tabindex);
|
this.projectListsByCount(this.tabindex);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
typeChangeFun(index){
|
typeChangeFun(index){
|
||||||
@@ -555,6 +562,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
typeChange(tab){
|
typeChange(tab){
|
||||||
|
this.currentTabIndex=tab.index;
|
||||||
if(this.activeName==="first"){
|
if(this.activeName==="first"){
|
||||||
this.typeChangeFun(tab.index);
|
this.typeChangeFun(tab.index);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user