Skip to content

Commit 9e7f92e

Browse files
committed
修复方向键无法正常使用的问题
1 parent 005b23d commit 9e7f92e

1 file changed

Lines changed: 0 additions & 31 deletions

File tree

dashboard/src/components/shared/ConsoleDisplayer.vue

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
multiple
4444
variant="outlined"
4545
class="filter-input filter-input-tags"
46-
@keydown.enter.prevent="commitTagSearch"
4746
>
4847
<template #selection="{ index }">
4948
<span
@@ -633,32 +632,6 @@ export default {
633632
this.keyword = '';
634633
},
635634
636-
normalizeTagValue(value) {
637-
if (typeof value === 'string') {
638-
return value.trim();
639-
}
640-
641-
if (value && typeof value.title === 'string') {
642-
return value.title.trim();
643-
}
644-
645-
if (value && typeof value.value === 'string') {
646-
return value.value.trim();
647-
}
648-
649-
return '';
650-
},
651-
652-
commitTagSearch() {
653-
const normalizedTag = this.normalizeTagValue(this.tagSearch);
654-
if (!normalizedTag || this.selectedTags.includes(normalizedTag)) {
655-
return;
656-
}
657-
658-
this.selectedTags = [...this.selectedTags, normalizedTag];
659-
this.tagSearch = '';
660-
},
661-
662635
getLevelColor(level) {
663636
return this.levelColors[level] || 'grey';
664637
},
@@ -745,10 +718,6 @@ export default {
745718
min-width: 36px;
746719
}
747720
748-
:deep(.filter-input-tags .v-combobox__selection) {
749-
max-width: calc(100% - 28px);
750-
}
751-
752721
.tag-selection-summary {
753722
display: inline-block;
754723
max-width: 100%;

0 commit comments

Comments
 (0)