diff --git a/ability/dmsfwk/dmsfwkstagetest/entry/src/main/ets/MainAbility/MainAbility.ts b/ability/dmsfwk/dmsfwkstagetest/entry/src/main/ets/MainAbility/MainAbility.ts index 25f09ec..c6b6759 100644 --- a/ability/dmsfwk/dmsfwkstagetest/entry/src/main/ets/MainAbility/MainAbility.ts +++ b/ability/dmsfwk/dmsfwkstagetest/entry/src/main/ets/MainAbility/MainAbility.ts @@ -73,8 +73,8 @@ export default class MainAbility extends Ability { onContinue(wantParams) { console.log('onContinue'); console.info(`onContinue version = ${wantParams.version}, targetDevice: ${wantParams.targetDevice}`); - wantParams['ohos.extra.param.key.supportContinueSourceExit'] = false; - wantParams['ohos.extra.param.key.supportContinuePageStack'] = false; + wantParams[wantConstant.Params.SUPPORT_CONTINUE_PAGE_STACK_KEY] = false; + wantParams[wantConstant.Params.SUPPORT_CONTINUE_SOURCE_EXIT_KEY] = false; return AbilityConstant.OnContinueResult.AGREE; } }; diff --git a/ability/dmsfwk/dmsfwkstagetestserver/entry/src/main/ets/MainAbility/MainAbility.ts b/ability/dmsfwk/dmsfwkstagetestserver/entry/src/main/ets/MainAbility/MainAbility.ts index 671d1eb..e55d8be 100644 --- a/ability/dmsfwk/dmsfwkstagetestserver/entry/src/main/ets/MainAbility/MainAbility.ts +++ b/ability/dmsfwk/dmsfwkstagetestserver/entry/src/main/ets/MainAbility/MainAbility.ts @@ -82,8 +82,8 @@ export default class MainAbility extends Ability { onContinue(wantParams) { console.log('onContinue'); console.info(`onContinue version = ${wantParams.version}, targetDevice: ${wantParams.targetDevice}`); - wantParams['ohos.extra.param.key.supportContinueSourceExit'] = false; - wantParams['ohos.extra.param.key.supportContinuePageStack'] = false; + wantParams[wantConstant.Params.SUPPORT_CONTINUE_PAGE_STACK_KEY] = false; + wantParams[wantConstant.Params.SUPPORT_CONTINUE_SOURCE_EXIT_KEY] = false; return AbilityConstant.OnContinueResult.AGREE; } };