From 05453ed16d4173e34849b8600af325ebe97804c6 Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 2 Feb 2023 14:33:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/packages/basic/AiNavTab.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/packages/basic/AiNavTab.vue b/ui/packages/basic/AiNavTab.vue index 4401528d..d5181b85 100644 --- a/ui/packages/basic/AiNavTab.vue +++ b/ui/packages/basic/AiNavTab.vue @@ -51,7 +51,7 @@ export default { const {pages} = this.logs if (id == this.currentTab) { const index = pages.findIndex(e => e.id == id) - const next = pages?.[index + 1] || pages?.[index - 1] || {name: '/'} + const next = pages?.[index + 1] || pages?.[index - 1] || {name: this.fixed.id || "/"} this.handleTabClick(next) } this.deletePage(id) @@ -61,7 +61,7 @@ export default { }, handleOpt(v) { this.$store.commit(v) - v == "clearAllPages" && this.handleTabClick({name: '/'}) + v == "clearAllPages" && this.handleTabClick({name: this.fixed.id || "/"}) } } }