修复酷狗歌曲无封面时报错的问题
parent
36d69da3b7
commit
1ce63c7550
|
@ -516,6 +516,7 @@ export default {
|
||||||
transition: @transition-theme;
|
transition: @transition-theme;
|
||||||
transition-property: color;
|
transition-property: color;
|
||||||
flex: none;
|
flex: none;
|
||||||
|
padding: 2px;
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
fill: currentColor;
|
fill: currentColor;
|
||||||
|
@ -525,7 +526,7 @@ export default {
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
transition: @transition-theme;
|
transition: @transition-theme;
|
||||||
transition-property: border-color;
|
transition-property: border-color;
|
||||||
border: 2px solid @color-theme_2-background_1;
|
// border: 2px solid @color-theme_2-background_1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.right {
|
.right {
|
||||||
|
@ -732,9 +733,9 @@ each(@themes, {
|
||||||
}
|
}
|
||||||
.left {
|
.left {
|
||||||
color: ~'@{color-@{value}-theme}';
|
color: ~'@{color-@{value}-theme}';
|
||||||
img {
|
// img {
|
||||||
border-color: ~'@{color-@{value}-theme_2-background_1}';
|
// border-color: ~'@{color-@{value}-theme_2-background_1}';
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
.play-btn {
|
.play-btn {
|
||||||
color: ~'@{color-@{value}-theme}';
|
color: ~'@{color-@{value}-theme}';
|
||||||
|
|
|
@ -37,7 +37,7 @@ export default {
|
||||||
requestObj.promise = requestObj.promise.then(({ body }) => {
|
requestObj.promise = requestObj.promise.then(({ body }) => {
|
||||||
if (body.error_code !== 0) return Promise.reject('图片获取失败')
|
if (body.error_code !== 0) return Promise.reject('图片获取失败')
|
||||||
let info = body.data[0].info
|
let info = body.data[0].info
|
||||||
return info.image.replace('{size}', info.imgsize[0])
|
return info.imgsize ? info.image.replace('{size}', info.imgsize[0]) : info.image
|
||||||
})
|
})
|
||||||
return requestObj
|
return requestObj
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue