From b7a61f9f5d0c0748db2804386c2c12500da67f63 Mon Sep 17 00:00:00 2001 From: huangdong57 Date: Fri, 25 Aug 2023 16:56:31 +0800 Subject: [PATCH] =?UTF-8?q?UIContent=E6=8A=A5=E9=94=99=E8=A7=A3=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: huangdong57 --- .../src/main/ets/TestAbility/TestAbility.ets | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arkui/ace_ets_component_completion/ace_ets_component_wholeCompletion/src/main/ets/TestAbility/TestAbility.ets b/arkui/ace_ets_component_completion/ace_ets_component_wholeCompletion/src/main/ets/TestAbility/TestAbility.ets index 77f152584..223771886 100644 --- a/arkui/ace_ets_component_completion/ace_ets_component_wholeCompletion/src/main/ets/TestAbility/TestAbility.ets +++ b/arkui/ace_ets_component_completion/ace_ets_component_wholeCompletion/src/main/ets/TestAbility/TestAbility.ets @@ -51,8 +51,11 @@ export default class TestAbility extends Ability { return; } windowClass = data; - - globalThis.uiContent = windowClass.getUIContext(); + try{ + globalThis.uiContent = windowClass.getUIContext(); + } catch(err){ + console.info("windowClass getUIContext is error" + JSON.stringify(err)) + } console.info('Succeeded in obtaining the main window. Data: ' + JSON.stringify(data)); }); } -- GitLab