From 58741efb8cd5bc9ba5e01f817ea461fb827d6941 Mon Sep 17 00:00:00 2001 From: zhouke Date: Wed, 22 Mar 2023 10:37:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E9=A1=BA=E5=BA=8F=E8=B0=83=E6=95=B4.hap=E5=8C=85?= =?UTF-8?q?=E5=88=87=E6=88=90arkui=E6=96=B0=E6=A1=86=E6=9E=B6stage?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=20.Signed-off-by:=20.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhouke --- arkXtest/uitestScene/BUILD.gn | 2 +- .../entry/src/main/ets/MainAbility/MainAbility.ts | 2 +- .../src/main/resources/base/profile/main_pages.json | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/arkXtest/uitestScene/BUILD.gn b/arkXtest/uitestScene/BUILD.gn index 95548bcae..683648a25 100644 --- a/arkXtest/uitestScene/BUILD.gn +++ b/arkXtest/uitestScene/BUILD.gn @@ -34,7 +34,7 @@ ohos_app_scope("uiTestScene_app_profile") { } ohos_js_assets("uitest_scene_ets_assets") { - source_dir = "entry/src/main" + source_dir = "entry/src/main/ets" } ohos_resources("uitest_scene_ets_resources") { diff --git a/arkXtest/uitestScene/entry/src/main/ets/MainAbility/MainAbility.ts b/arkXtest/uitestScene/entry/src/main/ets/MainAbility/MainAbility.ts index 7f21a5be2..a8706dc43 100644 --- a/arkXtest/uitestScene/entry/src/main/ets/MainAbility/MainAbility.ts +++ b/arkXtest/uitestScene/entry/src/main/ets/MainAbility/MainAbility.ts @@ -29,7 +29,7 @@ export default class MainAbility extends Ability { // Main window is created, set main page for this ability console.log("[Demo] Hap2MainAbility1 onWindowStageCreate") - windowStage.setUIContent(this.context, "pages/index", null) + windowStage.setUIContent(this.context, "MainAbility/pages/index", null) } onWindowStageDestroy() { diff --git a/arkXtest/uitestScene/entry/src/main/resources/base/profile/main_pages.json b/arkXtest/uitestScene/entry/src/main/resources/base/profile/main_pages.json index 23bba0ed1..52c0bc3c2 100644 --- a/arkXtest/uitestScene/entry/src/main/resources/base/profile/main_pages.json +++ b/arkXtest/uitestScene/entry/src/main/resources/base/profile/main_pages.json @@ -1,10 +1,10 @@ { "src": [ - "pages/index", - "pages/second", - "pages/third", - "pages/fourth", - "pages/screen", - "pages/drag" + "MainAbility/pages/index", + "MainAbility/pages/second", + "MainAbility/pages/third", + "MainAbility/pages/fourth", + "MainAbility/pages/screen", + "MainAbility/pages/drag" ] } -- GitLab