From 79447fa97adeba62a0c93475417581c6c348aa7b Mon Sep 17 00:00:00 2001 From: chengxingzhen Date: Thu, 9 Jun 2022 16:34:22 +0800 Subject: [PATCH] =?UTF-8?q?XTS=E9=97=AE=E9=A2=98=E7=94=A8=E4=BE=8B?= =?UTF-8?q?=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chengxingzhen --- .../main/js/MainAbility2/pages/index/index.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/aafwk/aafwk_standard/fa/faapplicationinfo/entry/src/main/js/MainAbility2/pages/index/index.js b/aafwk/aafwk_standard/fa/faapplicationinfo/entry/src/main/js/MainAbility2/pages/index/index.js index 1451704d8..f3fd01a5e 100644 --- a/aafwk/aafwk_standard/fa/faapplicationinfo/entry/src/main/js/MainAbility2/pages/index/index.js +++ b/aafwk/aafwk_standard/fa/faapplicationinfo/entry/src/main/js/MainAbility2/pages/index/index.js @@ -40,20 +40,24 @@ export default { featureAbility.getWant( (err, data) => { if (data.uri == '{true,true,false}'){ - console.info("SUB_AA_OpenHarmony_Want_0200_StartAbility" + JSON.stringify(data) + JSON.stringify(err)); + console.info("SUB_AA_OpenHarmony_Want_0200_StartAbility" + JSON + .stringify(data) + JSON.stringify(err)); event = data.uri commonEventPublishData = { data: event, } - commonEvent.publish('SUB_AA_OpenHarmony_Want_0200_CommonEvent', commonEventPublishData, PublishCallBackOne); + commonEvent.publish('SUB_AA_OpenHarmony_Want_0200_CommonEvent', + commonEventPublishData, PublishCallBackOne); } if (data.type == 'MIMETYPE'){ - console.info("SUB_AA_OpenHarmony_Want_0300_StartAbility" + JSON.stringify(data) + JSON.stringify(err)); + console.info("SUB_AA_OpenHarmony_Want_0300_StartAbility" + JSON + .stringify(data) + JSON.stringify(err)); event = data.type commonEventPublishData = { data: event, } - commonEvent.publish('SUB_AA_OpenHarmony_Want_0300_CommonEvent', commonEventPublishData, PublishCallBackTwo); + commonEvent.publish('SUB_AA_OpenHarmony_Want_0300_CommonEvent', + commonEventPublishData, PublishCallBackTwo); } } @@ -62,6 +66,4 @@ export default { onReady() { console.info('ApplicationInfo MainAbility2 onReady'); }, -} - - +} \ No newline at end of file -- GitLab