1***@qq.com
1***@qq.com
  • 发布:2024-10-14 00:38
  • 更新:2025-02-27 15:33
  • 阅读:240

鸿蒙通过arguments配置启动时参数不生效

分类:鸿蒙Next
let configArguments: Record<string, object> = {  
    "setTheme": {  
      project: "test",  
      color: "light",  
      fontSize: "normal",  
      direction: "rtl", //ltr  
    } as IThemeSettings,  
  };  

  const uniMPOpenConfiguration: IOpenUniMPConfig = {  
    redirectPath: path,  
    arguments: configArguments,  
  };  

//..................
// 启动小程序
const mp = openUniMP(mpId,uniMPOpenConfiguration)

2024-10-14 00:38 负责人:无 分享
已邀请:
DCloud_UNI_LXH

DCloud_UNI_LXH

等一下 4.31 发版

  • 3***@qq.com

    是要升级HBuild的版本吗?Windows版本升级到4.36 HBuilder鸿蒙通过arguments配置启动时参数还是不生效。是功能还没有实现还是代码的原因呢?

    2024-12-04 09:38

  • DCloud_UNI_LXH

    回复 3***@qq.com: 你怎么测试的?

    2024-12-06 13:49

3***@qq.com

3***@qq.com

有办法吗,目前白屏,不知道啥原因,有解决的吗

要回复问题请先登录注册