This commit is contained in:
dap
2024-10-25 07:53:50 +08:00
18 changed files with 112 additions and 50 deletions

View File

@@ -245,11 +245,11 @@ export const useTabbarStore = defineStore('core-tabbar', {
// 下一个tab存在跳转到下一个
if (after) {
this._close(currentRoute.value);
this._close(tab);
await this._goToTab(after, router);
// 上一个tab存在跳转到上一个
} else if (before) {
this._close(currentRoute.value);
this._close(tab);
await this._goToTab(before, router);
} else {
console.error('Failed to close the tab; only one tab remains open.');