选中纯音乐删除歌词
This commit is contained in:
parent
aa94efc54d
commit
baf0ae1b04
12
src/App.vue
12
src/App.vue
@ -496,6 +496,14 @@ const handlelike = index => {
|
||||
|
||||
// target.is_liked = 1
|
||||
}
|
||||
|
||||
// 切换纯音乐
|
||||
const switchchange = value => {
|
||||
// 当切换到纯音乐时去掉歌词
|
||||
if (!value) {
|
||||
obj.value.prompt = ""
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@ -561,7 +569,7 @@ const handlelike = index => {
|
||||
<template v-else>
|
||||
<div class="toggle-switch title-box flexacenter">
|
||||
<div class="title-left flexacenter">
|
||||
<el-switch v-model="obj.has_vocal" style="--el-switch-on-color: #fbd38d; --el-switch-off-color: #ffffff3d;" :active-value="false" :inactive-value="true" />
|
||||
<el-switch v-model="obj.has_vocal" style="--el-switch-on-color: #fbd38d; --el-switch-off-color: #ffffff3d;" :active-value="false" :inactive-value="true" @change="switchchange" />
|
||||
纯音乐
|
||||
<el-popover placement="right" :width="150" trigger="click" content="没有歌词的音乐。">
|
||||
<template #reference>
|
||||
@ -571,7 +579,7 @@ const handlelike = index => {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="lyric">
|
||||
<div class="lyric" v-if="obj.has_vocal">
|
||||
<div class="title-box flexacenter">
|
||||
<div class="title-left flexacenter">
|
||||
歌词
|
||||
|
Loading…
x
Reference in New Issue
Block a user