canSupportSwitchTheme 是否需要支持暗黑模式

canSupportSwitchTheme ^8.8

是否需要支持暗黑模式

#请求参数

Prop Type Default Comment
isSupportSwitchTheme boolean false 默认不支持,设置为true后需要插件根据当前模式来适配

#接口调用示例

const params = {
  isSupportSwitchTheme: true
}
// 触发
this.$bridge
  .canSupportSwitchTheme(params)
  .then(res => {
    this.result = res;
  })

#返回参数

  • 成功时返回N/A

#返回示例

{

  code: 0,

  msg: 'success',

}
posted on 2024-12-12 09:19  AtlasLapetos  阅读(6)  评论(0)    收藏  举报