task#10677,tab切的索引记录

This commit is contained in:
2024-02-01 11:41:46 +08:00
parent aa93bc352d
commit 4c451dc0fc
4 changed files with 49 additions and 18 deletions

View File

@ -66,7 +66,7 @@ export default {
},
created() {
const urlParams = new URLSearchParams(window.location.search);
this.id = this.$route.params.id || urlParams.get('id');
this.id = this.$route.params.id || urlParams.get('id') || this.$route.params.batchCode;
},
async mounted() {
this.activeIndex=this.$route.params?.activeIndex || 0
@ -116,6 +116,7 @@ export default {
params: {
id:id,
index:this.activeIndex,
batchCode:this.id,
}
});
},
@ -172,9 +173,9 @@ export default {
.navBar{
margin-bottom: 46px;
}
::v-deep .van-nav-bar__content{
/*::v-deep .van-nav-bar__content{
background-color: #354683 !important;
}
}*/
.tab_wrap {
@include fontWeightSize(500, 14px);
@include flexColAround();