!267 修复备忘录插入不同图片显示同一张图片问题

Merge pull request !267 from 张宏/master
This commit is contained in:
openharmony_ci 2024-06-13 06:40:08 +00:00 committed by Gitee
commit 6cd504dfc8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -15,6 +15,7 @@
import {LogUtil} from './LogUtil'
import {MediaLibraryAccess} from '../access/MediaLibraryAccess';
import dataSharePredicates from '@ohos.data.dataSharePredicates';
import fileio from '@ohos.fileio';
const TAG = "OperationUtils"
@ -113,10 +114,10 @@ export class OperationUtils {
async getFileAssetById(imagePath, context){
LogUtil.info(TAG, 'getFileAssetById', imagePath);
let predicates: dataSharePredicates.DataSharePredicates = new dataSharePredicates.DataSharePredicates();
let fetchOpt = {
selections : '',
selectionArgs : [],
uri:imagePath
fetchColumns: [],
predicates: predicates.equalTo('uri',imagePath)
}
try {