修改类似时自动灵感模式

This commit is contained in:
A1300399510 2024-08-01 14:41:59 +08:00
parent 90302b2bdf
commit 24e10d6745
2 changed files with 12 additions and 9 deletions

BIN
dist.rar

Binary file not shown.

View File

@ -178,7 +178,6 @@ const creativeMusic = () => {
} }
// let styleVisible = ref(true) // // let styleVisible = ref(true) //
// bass, drum, guitar, rock, pop, electro, electronic, metal, heavy metal, heavy metal, heavy metal, heavy metal
let stylelist = ["bass", "drum", "guitar", "rock", "pop", "electro", "electronic", "metal", "heavy metal", "Subscribe", "heavy metal", "beat", "synth", "hard rock", "rap", "catchy", "powerful", "indie pop"] let stylelist = ["bass", "drum", "guitar", "rock", "pop", "electro", "electronic", "metal", "heavy metal", "Subscribe", "heavy metal", "beat", "synth", "hard rock", "rap", "catchy", "powerful", "indie pop"]
const addStyle = item => { const addStyle = item => {
@ -193,7 +192,6 @@ const handleMusicList = index => {
let target = targetlist[index] let target = targetlist[index]
listIndex.value = index listIndex.value = index
// console.log(target.metadataid)
if (target.status !== "complete") { if (target.status !== "complete") {
monitorMusicState(target.metadataid || "没有metadataid") monitorMusicState(target.metadataid || "没有metadataid")
} }
@ -378,17 +376,22 @@ const generatingSimilar = index => {
let target = list.value[index] let target = list.value[index]
// //
if (target.metadata.prompt) { // if (target.metadata.prompt) {
cutType("custom") // cutType("custom")
} else { // } else {
cutType("inspiration") // cutType("inspiration")
} // }
console.log("target", target) cutType("custom")
// console.log("target", target)
nextTick(() => { nextTick(() => {
// console.log("target.model_name", target.model_name) // console.log("target.model_name", target.model_name)
obj.value = { ...target.metadata, mv: target.model_name, title: target.title, has_vocal: true } obj.value = { ...target.metadata, mv: target.model_name, title: target.title, has_vocal: true, gpt_description_prompt: "" }
// console.log("obj", obj.value);
}) })
} }