lint: prettier

master
kunkka 4 years ago
parent 4ad406ecfe
commit 1c458041a9

@ -174,7 +174,7 @@ export default {
progressMax() { progressMax() {
let max = ~~(this.currentTrack.dt / 1000); let max = ~~(this.currentTrack.dt / 1000);
return max > 1 ? max - 1 : max; return max > 1 ? max - 1 : max;
} },
}, },
methods: { methods: {
...mapMutations([ ...mapMutations([

@ -127,7 +127,7 @@ export default {
if (!this.track.playable) trackClass.push("disable"); if (!this.track.playable) trackClass.push("disable");
if (this.isPlaying) trackClass.push("playing"); if (this.isPlaying) trackClass.push("playing");
return trackClass; return trackClass;
} },
}, },
methods: { methods: {
goToAlbum() { goToAlbum() {

@ -37,9 +37,5 @@ export function isUsernameLoggedIn() {
// 账户登录或者用户名搜索都判断为登录,宽松检查 // 账户登录或者用户名搜索都判断为登录,宽松检查
export function isLooseLoggedIn() { export function isLooseLoggedIn() {
console.log(
"isAccountLoggedIn() || isUsernameLoggedIn()",
isAccountLoggedIn(), "||", isUsernameLoggedIn()
);
return isAccountLoggedIn() || isUsernameLoggedIn(); return isAccountLoggedIn() || isUsernameLoggedIn();
} }

@ -46,8 +46,7 @@
</ButtonTwoTone> </ButtonTwoTone>
<ButtonTwoTone <ButtonTwoTone
v-if=" v-if="
accountLogin && accountLogin && playlist.creator.userId !== settings.user.userId
playlist.creator.userId !== settings.user.userId
" "
shape="round" shape="round"
:iconClass="playlist.subscribed ? 'heart-solid' : 'heart'" :iconClass="playlist.subscribed ? 'heart-solid' : 'heart'"

Loading…
Cancel
Save