Skip to content

Commit

Permalink
fix: fix the error of closing the default analysis page on the tab pa…
Browse files Browse the repository at this point in the history
…ge (#4720)
  • Loading branch information
pingsanddoss authored Oct 23, 2024
1 parent 23768ea commit 862bbd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/stores/src/modules/tabbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
Expand Down

0 comments on commit 862bbd8

Please sign in to comment.