Fixed: Fixed the issue where tag deletion required double-click

This commit is contained in:
zhaojisen
2025-01-13 16:29:53 +08:00
committed by ZhaoJiSen
parent 2f9ad17b1f
commit fdb1dd886b

View File

@@ -17,7 +17,7 @@
size="small"
type="info"
@click="handleTagClick(v,k)"
@close="handleTagClose(k)"
@close.stop="handleTagClose(k)"
>
<strong v-if="v.label">{{ v.label + ':' }}</strong>
<span v-if="v.valueLabel">{{ v.valueLabel }}</span>
@@ -128,7 +128,7 @@ export default {
deep: true
},
filterTags: {
handler() {
handler(newValue) {
this.$emit('tag-search', this.filterMaps)
},
deep: true
@@ -137,6 +137,15 @@ export default {
if (newValue === '' && oldValue !== '') {
this.emptyCount = 1
}
},
'$route'(to, from) {
if (from.query !== to.query) {
this.filterTags = {}
if (to.query && Object.keys(to.query).length) {
const routeFilter = this.checkInTableColumns(this.options)
this.filterTagSearch(routeFilter)
}
}
}
},
mounted() {