修复酷狗歌曲无封面时报错的问题

pull/96/head
lyswhut 2019-10-19 11:48:19 +08:00
parent 36d69da3b7
commit 1ce63c7550
2 changed files with 6 additions and 5 deletions

View File

@ -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}';

View File

@ -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
},