提交 051dcc42 编写于 作者: Anne_LXM's avatar Anne_LXM

Update top-window.uvue

上级 87bd83bd
......@@ -15,6 +15,11 @@
type IndexPageItem = {
tabBar: string ;
index: string ;
}
type OnTabItemTapEvent = {
pagePath: string ;
text: string ;
index: number ;
}
export default {
data() {
......@@ -68,7 +73,8 @@
}
},
methods: {
toSecondMenu(e) {
// UniEvent类型报错,临时处理
toSecondMenu(e: OnTabItemTapEvent) {
const activeTabBar = '/' + e.pagePath
for (const item of this.indexPage) {
if (activeTabBar === item.tabBar) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册