AbnerMing888 / HarmonyOsNet

HarmonyOsNet是一个鸿蒙版的网络库,基于http封装而来,简化了请求方式,增加了常见的业务功能,支持同步、异步、装饰器模式,支持多种返回数据类型,Json、对象、数组,支持数据缓存,支持dialog加载,支持控制台请求信息格式化输出……
69 stars 11 forks source link

DevEco Studio 3.1.1 Release API 9 openHarmony NetLoadingDialog报错 #5

Open LZCBAD opened 5 months ago

LZCBAD commented 5 months ago

private mCustomDialogController: CustomDialogController = new CustomDialogController({ builder: NetLoadingDialog({}), customStyle: true, autoCancel: false });

报错 NetLoadingDialog 位置处class constructor cannot called without 'new
前面加上 new 则报错 is not callable

asdfgghjkl commented 2 months ago

我也遇到了同样的问题,使用CustomDialogController 报错 is not callable,这个loading默认不展示的吗