From 8d5e4691874f04ea5afadc53fb0c9a76773f97f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E9=92=B0=E8=83=9C?= Date: Wed, 2 Jul 2025 20:15:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9setFollowParentWindowLayoutEn?= =?UTF-8?q?abled=E6=8E=A5=E5=8F=A3=E7=A4=BA=E4=BE=8B=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 白钰胜 --- .../reference/apis-arkui/arkts-apis-window-Window.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/apis-arkui/arkts-apis-window-Window.md b/zh-cn/application-dev/reference/apis-arkui/arkts-apis-window-Window.md index e986672afca..34fca255450 100644 --- a/zh-cn/application-dev/reference/apis-arkui/arkts-apis-window-Window.md +++ b/zh-cn/application-dev/reference/apis-arkui/arkts-apis-window-Window.md @@ -8334,14 +8334,14 @@ import { UIAbility } from '@kit.AbilityKit'; export default class EntryAbility extends UIAbility { onWindowStageCreate(windowStage: window.WindowStage): void { - windowStage.loadContent('pages/Index', (loadError) => { + windowStage.loadContent('pages/Index', (loadError: BusinessError) => { if (loadError.code) { console.error(`Failed to load the content. Cause code: ${loadError.code}, message: ${loadError.message}`); return; } console.info("Succeeded in loading the content."); windowStage.createSubWindow("subWindow").then((subWindow: window.Window) => { - if (subWindow == null) { + if (subWindow === null) { console.error("Failed to create the subWindow. Cause: The data is empty"); return; } -- Gitee