This commit is contained in:
Physton
2023-09-16 19:54:34 +08:00
parent 9f58bf3648
commit ea868f5ce0

View File

@@ -290,15 +290,16 @@ export default {
let indexes = []
for (let index in this.tags) {
let tag = this.tags[index]
if (typeof tag['type'] === 'string' && tag.type === 'wrap') continue
let find = false
if (tag.isLora) {
find = tag.loraName === name || tag.loraName === output_name
find = tag.loraName === name || (output_name && tag.loraName === output_name)
} else if (tag.isLyco) {
find = tag.lycoName === name || tag.lycoName === output_name
find = tag.lycoName === name || (output_name && tag.lycoName === output_name)
} else if (tag.isEmbedding) {
find = tag.embeddingName === name || tag.embeddingName === output_name
find = tag.embeddingName === name || (output_name && tag.embeddingName === output_name)
} else {
find = tag.originalValue === name || tag.originalValue === output_name
find = tag.originalValue === name || (output_name && tag.originalValue === output_name)
}
if (find) {
indexes.push(index)