mirror of
https://github.com/koel/koel
synced 2024-11-24 21:23:06 +00:00
Use v-once
This commit is contained in:
parent
68a12be5c4
commit
06303c4852
3 changed files with 4 additions and 4 deletions
|
@ -17,7 +17,7 @@
|
|||
<td class="title">{{ song.title }}</td>
|
||||
<td class="artist">{{ song.artist.name }}</td>
|
||||
<td class="album">{{ song.album.name }}</td>
|
||||
<td class="time">{{ song.fmtLength }}</td>
|
||||
<td class="time" v-once>{{ song.fmtLength }}</td>
|
||||
<td class="play" @click.stop="doPlayback">
|
||||
<i class="fa fa-pause-circle" v-if="song.playbackState === 'playing'"></i>
|
||||
<i class="fa fa-play-circle" v-else></i>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<header id="mainHeader">
|
||||
<h1 class="brand">{{ appTitle }}</h1>
|
||||
<h1 class="brand" v-once>{{ appTitle }}</h1>
|
||||
<span class="hamburger" @click="toggleSidebar">
|
||||
<i class="fa fa-bars"></i>
|
||||
</span>
|
||||
|
|
|
@ -15,8 +15,8 @@ export function orderBy (arr, sortKey, reverse) {
|
|||
return aKey === bKey ? 0 : aKey > bKey;
|
||||
}
|
||||
|
||||
aKey = aKey === undefined ? aKey : aKey.toLowerCase();
|
||||
bKey = bKey === undefined ? bKey : bKey.toLowerCase();
|
||||
aKey = aKey === undefined ? aKey : `${aKey}`.toLowerCase();
|
||||
bKey = bKey === undefined ? bKey : `${bKey}`.toLowerCase();
|
||||
|
||||
return aKey === bKey ? 0 : aKey > bKey;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue