Signed-off-by: liujuan <liujuan76@h-partners.com>

Changes to be committed:
This commit is contained in:
liujuan 2024-05-30 17:14:55 +08:00
parent cf8fed90a4
commit 341845880a
4 changed files with 4 additions and 4 deletions

View File

@ -848,7 +848,7 @@ export struct ThirdSelectPhotoBrowserBase {
} }
return; return;
} }
let uriArray: Array<string>; let uriArray: string[] = [];
let mediaType: number; let mediaType: number;
if (this.isMultiPick) { if (this.isMultiPick) {
if (this.selectManager === null) { if (this.selectManager === null) {

View File

@ -69,7 +69,7 @@ struct FormEditorPage {
async getItems(albumUri?: string, startIndex?: number, count?: number, filterMediaType?: string): async getItems(albumUri?: string, startIndex?: number, count?: number, filterMediaType?: string):
Promise<Array<userFileManager.FileAsset>> { Promise<Array<userFileManager.FileAsset>> {
let result: Array<userFileManager.FileAsset> = []; let result: userFileManager.FileAsset[] = [];
// Get from target album if albumUri is not undefined, otherwise getAllObject // Get from target album if albumUri is not undefined, otherwise getAllObject
if (albumUri) { if (albumUri) {

View File

@ -378,7 +378,7 @@ struct IndexPage {
} }
Log.info(TAG, `Has permission been requested? ${isRequested}`); Log.info(TAG, `Has permission been requested? ${isRequested}`);
if (!isRequested) { if (!isRequested) {
let permissionList: Array<string> = [ let permissionList: string[] = [
'ohos.permission.READ_IMAGEVIDEO', 'ohos.permission.READ_IMAGEVIDEO',
'ohos.permission.WRITE_IMAGEVIDEO', 'ohos.permission.WRITE_IMAGEVIDEO',
'ohos.permission.MEDIA_LOCATION' 'ohos.permission.MEDIA_LOCATION'

View File

@ -516,7 +516,7 @@ export struct PhotoBrowserComponent {
this.toolMenuList = []; this.toolMenuList = [];
} }
} }
let menuTempList: Array<Action>; let menuTempList: Action[] = [];
if (!this.albumInfo) { if (!this.albumInfo) {
// 照片页 // 照片页
menuTempList = [Action.ADD, Action.RENAME]; menuTempList = [Action.ADD, Action.RENAME];