From bec7e6bafe753d05efc1baeb1c1eb458473357e4 Mon Sep 17 00:00:00 2001 From: Anne_LXM Date: Mon, 5 Aug 2024 16:26:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=BD=E5=B1=8F=E6=97=B6=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E9=A6=96=E9=A1=B5=E6=94=B9=E4=B8=BAview?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windows/top-window.uvue | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/windows/top-window.uvue b/windows/top-window.uvue index b892c77a..53450456 100644 --- a/windows/top-window.uvue +++ b/windows/top-window.uvue @@ -16,11 +16,6 @@ tabBar : string.PageURIString; indexPageUrl : string.PageURIString; } - type OnTabItemTapEvent = { - pagePath : string; - text : string; - index : number; - } export default { data() { return { @@ -33,7 +28,7 @@ current: 0, indexPage: [{ tabBar: '/pages/tabBar/component', - indexPageUrl: '/pages/component/global-properties/global-properties' + indexPageUrl: '/pages/component/view/view' }, { tabBar: '/pages/tabBar/API', indexPageUrl: '/pages/API/get-app/get-app' @@ -59,7 +54,7 @@ if (path === '/') { category = 'component' uni.redirectTo({ - url: '/pages/component/global-properties/global-properties' + url: '/pages/component/view/view' }) return } else if (path.indexOf('/pages/tabBar') === 0) { @@ -80,8 +75,7 @@ } }, methods: { - // UniEvent类型报错,临时处理 - toSecondMenu(e : OnTabItemTapEvent) { + toSecondMenu(e : OnTabItemTapOption) { const activeTabBar = '/' + e.pagePath for (const item of this.indexPage) { if (activeTabBar === item.tabBar) { -- GitLab