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',
}
浙公网安备 33010602011771号