From 2ed0b6484c0fc0a1c03686a853bfcc4f442db222 Mon Sep 17 00:00:00 2001 From: Soybean Date: Fri, 6 Jun 2025 22:50:17 +0800 Subject: [PATCH 1/2] feat(docs): add DartNode sponsorship badge to README files --- README.en_US.md | 1 + README.md | 1 + 2 files changed, 2 insertions(+) diff --git a/README.en_US.md b/README.en_US.md index e2f85b6b..b9aed73d 100644 --- a/README.en_US.md +++ b/README.en_US.md @@ -11,6 +11,7 @@ [![github forks](https://img.shields.io/github/forks/soybeanjs/soybean-admin)](https://github.com/soybeanjs/soybean-admin) [![gitee stars](https://gitee.com/honghuangdc/soybean-admin/badge/star.svg)](https://gitee.com/honghuangdc/soybean-admin) [![gitcode star](https://gitcode.com/soybeanjs/soybean-admin/star/badge.svg)](https://gitcode.com/soybeanjs/soybean-admin) +[![Powered by DartNode](https://dartnode.com/branding/DN-Open-Source-sm.png)](https://dartnode.com "Powered by DartNode - Free VPS for Open Source") Featured|HelloGitHub diff --git a/README.md b/README.md index 2d544153..d2036d51 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ [![github forks](https://img.shields.io/github/forks/soybeanjs/soybean-admin)](https://github.com/soybeanjs/soybean-admin) [![gitee stars](https://gitee.com/honghuangdc/soybean-admin/badge/star.svg)](https://gitee.com/honghuangdc/soybean-admin) [![gitcode star](https://gitcode.com/soybeanjs/soybean-admin/star/badge.svg)](https://gitcode.com/soybeanjs/soybean-admin) +[![Powered by DartNode](https://dartnode.com/branding/DN-Open-Source-sm.png)](https://dartnode.com "Powered by DartNode - Free VPS for Open Source") Featured|HelloGitHub From e6044d0fc76889e5088e92d7948cf96678516c1a Mon Sep 17 00:00:00 2001 From: wenyuan <49969025+wenyuanw@users.noreply.github.com> Date: Mon, 9 Jun 2025 13:48:48 +0800 Subject: [PATCH 2/2] optimize(projects): optimize tab deletion logic. closed #755 --- src/store/modules/tab/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/store/modules/tab/index.ts b/src/store/modules/tab/index.ts index 2e067557..b9c91c8d 100644 --- a/src/store/modules/tab/index.ts +++ b/src/store/modules/tab/index.ts @@ -100,7 +100,9 @@ export const useTabStore = defineStore(SetupStoreId.Tab, () => { const removedTabRouteKey = tabs.value[removeTabIndex].routeKey; const isRemoveActiveTab = activeTabId.value === tabId; - const nextTab = tabs.value[removeTabIndex + 1] || homeTab.value; + + // if remove the last tab, then switch to the second last tab + const nextTab = tabs.value[removeTabIndex + 1] || tabs.value[removeTabIndex - 1] || homeTab.value; // remove tab tabs.value.splice(removeTabIndex, 1);