mirror of
https://gitee.com/openharmony/applications_photos
synced 2025-02-18 14:22:29 +00:00
update product/phone/src/main/ets/MainAbility/MainAbility.ts.
Signed-off-by: liujuan <liujuan76@h-partners.com>
This commit is contained in:
parent
7625c43672
commit
3d54a2e53e
@ -121,7 +121,8 @@ export default class MainAbility extends Ability {
|
||||
isFromCard = true;
|
||||
AppStorage.SetOrCreate('entryFromHap', Constants.ENTRY_FROM_FORM_ABILITY);
|
||||
AppStorage.SetOrCreate('form_albumUri', wantParam?.albumUri);
|
||||
AppStorage.SetOrCreate('form_currentUri', wantParam?.currentUri);
|
||||
AppStorage.setOrCreate('form_currentUri', wantParam?.currentUri);
|
||||
AppStorage.setOrCreate('form_currentIndex', wantParam?.currentIndex);
|
||||
AppStorage.SetOrCreate('form_displayName', wantParam?.displayName);
|
||||
this.formAlbumUri = wantParam?.albumUri as string;
|
||||
this.formCurrentUri = wantParam?.currentUri as string;
|
||||
@ -260,8 +261,9 @@ export default class MainAbility extends Ability {
|
||||
url: 'pages/PhotoBrowser',
|
||||
params: {
|
||||
pageFrom: Constants.ENTRY_FROM.CARD,
|
||||
albumUri: this.formAlbumUri,
|
||||
uri: this.formCurrentUri
|
||||
albumId: AppStorage.get('form_albumUri'),
|
||||
uri: AppStorage.get('form_currentUri'),
|
||||
index: AppStorage.get('form_currentIndex')
|
||||
}
|
||||
};
|
||||
router.replaceUrl(options);
|
||||
|
Loading…
x
Reference in New Issue
Block a user