选中纯音乐删除歌词

This commit is contained in:
A1300399510 2024-07-23 10:53:10 +08:00
parent aa94efc54d
commit baf0ae1b04

View File

@ -496,6 +496,14 @@ const handlelike = index => {
// target.is_liked = 1 // target.is_liked = 1
} }
//
const switchchange = value => {
//
if (!value) {
obj.value.prompt = ""
}
}
</script> </script>
<template> <template>
@ -561,7 +569,7 @@ const handlelike = index => {
<template v-else> <template v-else>
<div class="toggle-switch title-box flexacenter"> <div class="toggle-switch title-box flexacenter">
<div class="title-left 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="没有歌词的音乐。"> <el-popover placement="right" :width="150" trigger="click" content="没有歌词的音乐。">
<template #reference> <template #reference>
@ -571,7 +579,7 @@ const handlelike = index => {
</div> </div>
</div> </div>
<div class="lyric"> <div class="lyric" v-if="obj.has_vocal">
<div class="title-box flexacenter"> <div class="title-box flexacenter">
<div class="title-left flexacenter"> <div class="title-left flexacenter">
歌词 歌词