mirror of
https://github.com/tiny-craft/tiny-rdm.git
synced 2025-05-25 09:52:31 +08:00
fix: auto refresh should not force activation of owning tabs (#336)
This commit is contained in:
parent
c082a0c41f
commit
b506e8a6a4
@ -198,6 +198,7 @@ const useTabStore = defineStore('tab', {
|
|||||||
})
|
})
|
||||||
this.tabList.push(tabItem)
|
this.tabList.push(tabItem)
|
||||||
tabIndex = this.tabList.length - 1
|
tabIndex = this.tabList.length - 1
|
||||||
|
this._setActivatedIndex(tabIndex, true, subTab)
|
||||||
} else {
|
} else {
|
||||||
const tab = this.tabList[tabIndex]
|
const tab = this.tabList[tabIndex]
|
||||||
tab.blank = false
|
tab.blank = false
|
||||||
@ -219,7 +220,6 @@ const useTabStore = defineStore('tab', {
|
|||||||
tab.value = undefined
|
tab.value = undefined
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this._setActivatedIndex(tabIndex, true, subTab)
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user