|
|
@@ -4843,9 +4843,10 @@ export struct LocalMusic {
|
|
|
Row() {
|
|
|
Stack() {
|
|
|
|
|
|
- Image(StrUtil.isNotEmpty(this.imagePathStr)?this.imagePathStr:
|
|
|
- StrUtil.isEmpty(item.pixelMapPath) ? $r('app.media.music_red') :
|
|
|
- item.pixelMapPath)
|
|
|
+ Image(StrUtil.isNotEmpty(this.imagePathStr)?this.imagePathStr.startsWith('http')?
|
|
|
+ this.imagePathStr:fileUri.getUriFromPath(this.imagePathStr):
|
|
|
+ StrUtil.isEmpty(item.pixelMapPath) ? $r('app.media.music_red') :
|
|
|
+ item.pixelMapPath)
|
|
|
.fillColor(this.themeColor)
|
|
|
.height(55)
|
|
|
.width(55)
|
|
|
@@ -4914,7 +4915,7 @@ export struct LocalMusic {
|
|
|
|
|
|
const imagePath:string | undefined = await this.doSearchCover(item);
|
|
|
console.info('onecold imagePath = '+imagePath)
|
|
|
- if (imagePath) {
|
|
|
+ if (StrUtil.isNotEmpty(imagePath)) {
|
|
|
//用户更改过图片
|
|
|
this.imagePathStr = imagePath
|
|
|
ToastUtil.showToast('获取封面成功')
|