!286 [缺陷]加密分享传递文件类型

Merge pull request !286 from 王力量/day1009_fileType_weekly
This commit is contained in:
openharmony_ci 2024-10-10 04:53:20 +00:00 committed by Gitee
commit 6f7e00b522
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 8 additions and 7 deletions

View File

@ -2,8 +2,8 @@
"app": {
"bundleName": "com.ohos.dlpmanager",
"vendor": "example",
"versionCode": 1000110,
"versionName": "1.0.1.10",
"versionCode": 1000111,
"versionName": "1.0.1.11",
"icon": "$media:app_icon",
"label": "$string:app_name",
"minAPIVersion": 12,

View File

@ -16,8 +16,8 @@
"app": {
"bundleName": "com.ohos.dlpmanager",
"vendor": "example",
"versionCode": 1000110,
"versionName": "1.0.1.10",
"versionCode": 1000111,
"versionName": "1.0.1.11",
"icon": "$media:app_icon",
"label": "$string:app_name",
"minAPIVersion": 12,

View File

@ -96,6 +96,7 @@ struct encryptedSharing {
@State recordHashUid: string = '';
@State osVersion: ResourceStr = '';
@State textBoxIsFocused: boolean = false;
@State generalType: string = 'general.file';
@Builder
contactsPicker() {
@ -247,6 +248,7 @@ struct encryptedSharing {
AppStorage.setOrCreate('hiFileType', srcFileMsg.fileType);
let res: string = '';
Object.keys(abilityPickerRecords).forEach(key => {
this.generalType = key;
res = abilityPickerRecords[key][0]?.['4'];
});
if (res === undefined) {
@ -273,9 +275,8 @@ struct encryptedSharing {
'4': dlpFileName
}
];
let generalFile: Record<string, Test[]> = {
'general.file': arr,
}
let generalFile: Record<string, Test[]> = {};
generalFile[this.generalType] = arr;
this.actionWant.parameters['ability.picker.records'] = generalFile;
setTimeout(() => {
this.session!.terminateSelfWithResult({