1
0
mirror of https://github.com/jumpserver/lina.git synced 2025-05-10 17:16:25 +00:00

Fixed: Label Click

This commit is contained in:
zhaojisen 2025-03-14 15:18:32 +08:00 committed by ZhaoJiSen
parent 9262ce56d1
commit aa8c2da715

View File

@ -338,6 +338,7 @@ export default {
},
handleTagClick(v, k) {
let unableChange = false
for (const field of this.options) {
if (field.value === v.key) {
if (field.type === 'choice') {
@ -346,15 +347,20 @@ export default {
if (field.type === 'boolean') {
unableChange = true
}
if (field.type === 'labeled_choice') {
unableChange = true
}
}
}
if (unableChange) {
return
}
if (unableChange) return
if (this.filterValue.length !== 0) {
this.handleConfirm()
}
this.$delete(this.filterTags, k)
this.filterKey = v.key
this.filterValue = v.value
this.$refs.SearchInput.focus()