mirror of
https://gitee.com/openharmony/applications_notes
synced 2024-11-26 17:20:25 +00:00
修复备忘录插入不同图片显示同一张图片
Signed-off-by: zwx1126739 <zhanghong121@huawei.com>
This commit is contained in:
parent
bb1913cec8
commit
22fc3e6f9c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user