Skip to content

Commit

Permalink
fix auto focus bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fuyoo committed Jan 20, 2025
1 parent ee90e06 commit 7ba98e8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/pages/host/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ const useDb = (db: number) => {
}
const unUseDb = (db: number) => {
tabs.value.delete(db)
if (tabs.value.size == 0) {
navTab.value = "status"
} else {
setTimeout(() => {
setTimeout(() => {
if (tabs.value.size == 0) {
navTab.value = "status"
} else {
navTab.value = `tab-${[...tabs.value][tabs.value.size - 1]}`
}, 100)
}
}
}, 100)
}
const splitterModel = ref(50)
const doCommand = async () => {
Expand Down

0 comments on commit 7ba98e8

Please sign in to comment.