首页 > 编程语言 >【微信小程序】tabbar报错Component is not found in path “custom-tab-bar/index“

【微信小程序】tabbar报错Component is not found in path “custom-tab-bar/index“

时间:2023-01-16 18:02:00浏览次数:64  
标签:index bar custom 0000ff 报错 tabbar true


问题描述

  在​​app.json​​​配置好​​tabBar​​​,发现页面毫无变化,甚至还报错了​​Component is not found in path "custom-tab-bar/index"​​。配置是从微信小程序官网复制的,如下:

"tabBar": {
"custom": true,
"color": "#0000ff",
"selectedColor": "#00ff00",
"backgroundColor": "#0000ff",
"list": [{
"pagePath": "pages/index/index",
"text": "组件",
"iconPath": "/images/index.png",
"selectedIconPath": "/images/index_selected.png"
}, {
"pagePath": "pages/logs/logs",
"text": "接口"
}]
},
"usingComponents": {}

解决办法

  把​​"custom": true​​删除。

问题原理分析

  ​​"custom": true​​表示的是自定义tabbar。


标签:index,bar,custom,0000ff,报错,tabbar,true
From: https://blog.51cto.com/u_15942590/6010678

相关文章