mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-13 11:24:17 +00:00
Fixed: Fixed the issue where tag deletion required double-click
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user