# canSupportSwitchTheme ^8.8
是否需要支持暗黑模式
# 请求参数
| Prop | Type | Default | Comment | 
|---|---|---|---|
| isSupportSwitchTheme | boolean | false | 默认不支持,设置为true后需要插件根据当前模式来适配 | 
# 接口调用示例
const params = {
  isSupportSwitchTheme: true
}
// 触发
this.$bridge
  .canSupportSwitchTheme(params)
  .then(res => {
    this.result = res;
  })
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
# 返回参数
- 成功时返回N/A
# 返回示例
{
  code: 0,
  msg: 'success',
}
1
2
3
4
5
6
7
2
3
4
5
6
7
