diff --git a/pages.json b/pages.json index 42855bfaf6d434c36f4ad8df8fc259fecefe1d87..c5123d4bca4ed3b74fd64b1a9e2c80a3c8802ac5 100644 --- a/pages.json +++ b/pages.json @@ -1814,7 +1814,7 @@ "pagePath": "pages/tabBar/component", "iconPath": "@tabBarComponentIconPath", "selectedIconPath": "@tabBarComponentSelectedIconPath", - "text": "内置组件" + "text": "组件" }, { "pagePath": "pages/tabBar/API", diff --git a/windows/top-window.uvue b/windows/top-window.uvue index f34492a5a8298aa8794f55ec66ca60400613986c..b892c77a16a50ff27b5881f1c0e235cff68c642b 100644 --- a/windows/top-window.uvue +++ b/windows/top-window.uvue @@ -2,8 +2,8 @@ - - hello uni-app + + hello uni-app x type IndexPageItem = { - tabBar : string; - index : string; + tabBar : string.PageURIString; + indexPageUrl : string.PageURIString; } type OnTabItemTapEvent = { pagePath : string; @@ -33,16 +33,16 @@ current: 0, indexPage: [{ tabBar: '/pages/tabBar/component', - index: '/pages/component/global-properties/global-properties' + indexPageUrl: '/pages/component/global-properties/global-properties' }, { tabBar: '/pages/tabBar/API', - index: '/pages/API/get-app/get-app' + indexPageUrl: '/pages/API/get-app/get-app' }, { tabBar: '/pages/tabBar/CSS', - index: '/pages/CSS/layout/width' + indexPageUrl: '/pages/CSS/layout/width' }, { tabBar: '/pages/tabBar/template', - index: '/pages/template/long-list/long-list' + indexPageUrl: '/pages/template/slider-100/slider-100' }] as IndexPageItem[] } }, @@ -69,7 +69,7 @@ return } uni.redirectTo({ - url: indexPageItem.index + url: indexPageItem.indexPageUrl }) return } else { @@ -86,7 +86,7 @@ for (const item of this.indexPage) { if (activeTabBar === item.tabBar) { uni.redirectTo({ - url: item.index + url: item.indexPageUrl }) } }