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

宽屏时组件模块首页改为view

上级 df5a8416
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册