参考链接如下:https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/application-window-stage-V5参考代码onWindowStageCreate(windowStage: window.WindowStage) { windowStage.getMainWindow().then((windowObj) => { windowObj.setWindowLayoutFullScreen(true); windowObj.setWindowSystemBarEnable(['status']) }); }
参考链接如下:https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/application-window-stage-V5
参考代码