From 862bbd83441fa2bd7d7c933eedba127b95389bdc Mon Sep 17 00:00:00 2001 From: pingsanddoss <33388958+pingsanddoss@users.noreply.github.com> Date: Wed, 23 Oct 2024 14:12:33 +0800 Subject: [PATCH] fix: fix the error of closing the default analysis page on the tab page (#4720) --- packages/stores/src/modules/tabbar.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/stores/src/modules/tabbar.ts b/packages/stores/src/modules/tabbar.ts index e4799bfd..53a74feb 100644 --- a/packages/stores/src/modules/tabbar.ts +++ b/packages/stores/src/modules/tabbar.ts @@ -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.');