单独写了组件,结果运行没有问题,真机测试一直出现找不到组件的问题。
组件的json文件里面,一定要加 “component”: true,
{ "navigationBarTitleText": "导航栏组件", "component": true, "usingComponents": {} }