Skip to content

Commit c4b8ac8

Browse files
committed
修复hires类型显示
1 parent 0ac2df1 commit c4b8ac8

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

src/renderer/components/common/DownloadModal.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<main :class="$style.main">
44
<h2>{{ info.name }}<br/>{{ info.singer }}</h2>
55
<base-btn :class="$style.btn" :key="type.type" @click="handleClick(type.type)" v-for="type in types"
6-
>{{getTypeName(type.type)}} {{ type.type.toUpperCase() }}{{ type.size && ` - ${type.size.toUpperCase()}` }}</base-btn>
6+
>{{getTypeName(type.type)}}{{ type.size && ` - ${type.size.toUpperCase()}` }}</base-btn>
77
</main>
88
</material-modal>
99
</template>
@@ -56,15 +56,16 @@ export default {
5656
getTypeName(type) {
5757
switch (type) {
5858
case 'flac32bit':
59+
return this.$t('download__lossless') + ' FLAC Hires'
5960
case 'flac':
6061
case 'ape':
6162
case 'wav':
62-
return this.$t('download__lossless')
63+
return this.$t('download__lossless') + ' ' + type.toUpperCase()
6364
case '320k':
64-
return this.$t('download__high_quality')
65+
return this.$t('download__high_quality') + ' ' + type.toUpperCase()
6566
case '192k':
6667
case '128k':
67-
return this.$t('download__normal')
68+
return this.$t('download__normal') + ' ' + type.toUpperCase()
6869
}
6970
},
7071
checkSource(type) {

src/renderer/components/common/DownloadMultipleModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<base-btn :class="$style.btn" @click="handleClick('128k')">{{$t('download__normal')}} - 128K</base-btn>
66
<base-btn :class="$style.btn" @click="handleClick('320k')">{{$t('download__high_quality')}} - 320K</base-btn>
77
<base-btn :class="$style.btn" @click="handleClick('flac')">{{$t('download__lossless')}} - FLAC</base-btn>
8-
<base-btn :class="$style.btn" @click="handleClick('flac32bit')">{{$t('download__lossless')}} - FLAC 24bit</base-btn>
8+
<base-btn :class="$style.btn" @click="handleClick('flac32bit')">{{$t('download__lossless')}} - FLAC Hires</base-btn>
99
</main>
1010
</material-modal>
1111
</template>

src/renderer/views/Download.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ div(:class="$style.download")
2424
span.select {{item.name}}
2525
div.list-item-cell(style="width: 20%;") {{item.progress.progress}}%
2626
div.list-item-cell(style="width: 22%;" :aria-label="item.statusText") {{item.statusText}}
27-
div.list-item-cell(style="width: 10%;") {{item.metadata.type && item.metadata.type.toUpperCase()}}
27+
div.list-item-cell(style="width: 10%;") {{getTypeName(item.metadata.type)}}
2828
div.list-item-cell(style="width: 13%; padding-left: 0; padding-right: 0;")
2929
material-list-buttons(:index="index" :download-btn="false" :file-btn="item.status != downloadStatus.ERROR" remove-btn
3030
:start-btn="!item.isComplate && item.status != downloadStatus.WAITING && (item.status != downloadStatus.RUN)"
@@ -482,6 +482,9 @@ export default {
482482
openUrl(url)
483483
}
484484
},
485+
getTypeName(type) {
486+
return type == 'flac32bit' ? 'FLAC Hires' : type?.toUpperCase()
487+
},
485488
},
486489
}
487490
</script>

0 commit comments

Comments
 (0)