mirror of
https://gitee.com/openharmony/applications_photos
synced 2024-11-23 07:00:09 +00:00
Signed-off-by: liujuan <liujuan76@h-partners.com>
Changes to be committed:
This commit is contained in:
parent
cf8fed90a4
commit
341845880a
@ -848,7 +848,7 @@ export struct ThirdSelectPhotoBrowserBase {
|
||||
}
|
||||
return;
|
||||
}
|
||||
let uriArray: Array<string>;
|
||||
let uriArray: string[] = [];
|
||||
let mediaType: number;
|
||||
if (this.isMultiPick) {
|
||||
if (this.selectManager === null) {
|
||||
|
@ -69,7 +69,7 @@ struct FormEditorPage {
|
||||
|
||||
async getItems(albumUri?: string, startIndex?: number, count?: number, filterMediaType?: string):
|
||||
Promise<Array<userFileManager.FileAsset>> {
|
||||
let result: Array<userFileManager.FileAsset> = [];
|
||||
let result: userFileManager.FileAsset[] = [];
|
||||
|
||||
// Get from target album if albumUri is not undefined, otherwise getAllObject
|
||||
if (albumUri) {
|
||||
|
@ -378,7 +378,7 @@ struct IndexPage {
|
||||
}
|
||||
Log.info(TAG, `Has permission been requested? ${isRequested}`);
|
||||
if (!isRequested) {
|
||||
let permissionList: Array<string> = [
|
||||
let permissionList: string[] = [
|
||||
'ohos.permission.READ_IMAGEVIDEO',
|
||||
'ohos.permission.WRITE_IMAGEVIDEO',
|
||||
'ohos.permission.MEDIA_LOCATION'
|
||||
|
@ -516,7 +516,7 @@ export struct PhotoBrowserComponent {
|
||||
this.toolMenuList = [];
|
||||
}
|
||||
}
|
||||
let menuTempList: Array<Action>;
|
||||
let menuTempList: Action[] = [];
|
||||
if (!this.albumInfo) {
|
||||
// 照片页
|
||||
menuTempList = [Action.ADD, Action.RENAME];
|
||||
|
Loading…
Reference in New Issue
Block a user