可使用setWindowKeepScreenOn。文档参考:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-window-0000001815246534-V5
可使用setWindowKeepScreenOn。
文档参考:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-window-0000001815246534-V5