Commit 862bbd83 by pingsanddoss Committed by GitHub

fix: fix the error of closing the default analysis page on the tab page (#4720)

1 parent 23768ea6
...@@ -245,11 +245,11 @@ export const useTabbarStore = defineStore('core-tabbar', { ...@@ -245,11 +245,11 @@ export const useTabbarStore = defineStore('core-tabbar', {
// 下一个tab存在,跳转到下一个 // 下一个tab存在,跳转到下一个
if (after) { if (after) {
this._close(currentRoute.value); this._close(tab);
await this._goToTab(after, router); await this._goToTab(after, router);
// 上一个tab存在,跳转到上一个 // 上一个tab存在,跳转到上一个
} else if (before) { } else if (before) {
this._close(currentRoute.value); this._close(tab);
await this._goToTab(before, router); await this._goToTab(before, router);
} else { } else {
console.error('Failed to close the tab; only one tab remains open.'); console.error('Failed to close the tab; only one tab remains open.');
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!