// 初始化分布式KV存储 DistributedDataUtil.initKVManager(); DistributedDataUtil.initKVStore(); // 数据写入(自动同步至关联设备) DistributedDataUtil.addData();
if (deviceInfo.type === DeviceType.WATCH) { // 手表端实现 return WatchUI(); } else if (deviceInfo.type === DeviceType.TV) { // 电视端实现 return TVUI(); } else { // 默认实现 return DefaultUI(); }
提交