chore: format codes

This commit is contained in:
qier222 2021-04-26 16:26:49 +08:00
parent 6922c716e2
commit 9351f6bc89
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
73 changed files with 2321 additions and 2321 deletions

View file

@ -10,7 +10,7 @@
<script>
export default {
name: "ArtistInLine",
name: 'ArtistInLine',
props: {
artists: {
type: Array,
@ -18,20 +18,20 @@ export default {
},
exclude: {
type: String,
default: "",
default: '',
},
prefix: {
type: String,
default: "",
default: '',
},
},
computed: {
filteredArtists() {
return this.artists.filter((a) => a.name !== this.exclude);
return this.artists.filter(a => a.name !== this.exclude);
},
computedPrefix() {
if (this.filteredArtists.length !== 0) return this.prefix;
else return "";
else return '';
},
},
};