@@ -38,6 +38,10 @@ export const useTabsStore = defineStore('tabsStore', () => {
if (!tabs.value.some(({ path }) => path === tab.path)) {
const id = Date.now()
tabs.value.push({ ...tab, id })
+
+ if (tab.pinned) {
+ sortTabs()
+ }
}
setTabActivePath(tab.path)