Browse Source
fix: fix the error of closing the default analysis page on the tab page (#4720)
pull/4727/head
pingsanddoss
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
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.'); |
|
|
|
|