From 051dcc42b083fdd2d71f31c0e0168fd5951568ab Mon Sep 17 00:00:00 2001 From: Anne_LXM Date: Fri, 19 Jul 2024 15:32:02 +0800 Subject: [PATCH] Update top-window.uvue --- windows/top-window.uvue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/windows/top-window.uvue b/windows/top-window.uvue index c5dcb94d..c3558ee5 100644 --- a/windows/top-window.uvue +++ b/windows/top-window.uvue @@ -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) { -- GitLab