fix: bugs

This commit is contained in:
qier222 2021-01-29 21:36:10 +08:00
parent de7d008c0b
commit 967a7165ac
8 changed files with 39 additions and 27 deletions

View file

@ -50,9 +50,12 @@ export default {
},
computed: {
imageStyles() {
let styles = {};
let styles = {
objectFit: "cover",
};
if (this.fixedSize !== 0) {
styles.width = this.fixedSize + "px";
styles.height = this.fixedSize + "px";
}
if (this.type === "artist") styles.borderRadius = "50%";
return styles;

View file

@ -150,7 +150,6 @@ export default {
return {
interval: null,
progress: 0,
oldVolume: 0.5,
};
},
mounted() {