使用了usingComponents后的页面,必须在app.json里面注册
发布于 6 年前 作者 xiuyingchang 14648 次浏览 来自 问答

使用了usingComponent后的页面,必须在app.json中进行注册,否则会报错!

我的 common/pages/addrList/index.json 里面有用

{

“usingComponents”: {

 “button”: “…/…/components/button/index”,

  “icon”: “…/…/components/icon/index”

}

但是这个页面是公共部分,在本项目中还没有用到,所以暂时没有在app.json中注册。

其他没有用到usingComponents功能的页面不在app.json中注册是没有问题的。

请问,目前而言,我只能在app.json中注册一下吗?

1 回复

感谢反馈。目前是这样的。未来我们会考虑优化一下。

回到顶部