Skip to content

Commit a783907

Browse files
donaldshenlevy9527
authored andcommitted
fix: 刷新页面后,tabbar未高亮对应tab的问题 (#56)
1 parent d6d6093 commit a783907

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

template/frameworks/mobile/layouts/layout-with-footer.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ export default {
4848
}
4949
]
5050
}
51+
},
52+
watch: {
53+
$route: {
54+
handler({path}) {
55+
this.active = this.footerTab.findIndex(e => e.url === path)
56+
},
57+
immediate: true
58+
}
5159
}
5260
}
5361
</script>

template/frameworks/mobile/pages/order-list.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import DataList from '@femessage/data-list'
1616
1717
export default {
18+
layout: 'layout-with-footer',
1819
components: {
1920
DataList
2021
},

0 commit comments

Comments
 (0)