# getThemeMode

查询当前主题模式(日间/夜间)

# 调用方式

getThemeMode()
1

返回 Promise,使用 then/catch 或 await 处理结果。

# 请求参数

无。

# 接口调用示例

this.$bridge.getThemeMode().then(res => {
    // res.mode: 1 日间模式, 2 夜间模式
    console.log(res.mode)
})
1
2
3
4

# 返回参数

  • 返回 mode 字段:1=日间,2=夜间

# 接口返回示例

{ mode: 1 }
1