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