From f8105d54220dbd78796cd47ff55878abdce0df4a Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 5 Jul 2022 16:05:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=BA=A7=E5=93=81=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/components/mainContent.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/components/mainContent.vue b/examples/components/mainContent.vue index 51267076..a25a1985 100644 --- a/examples/components/mainContent.vue +++ b/examples/components/mainContent.vue @@ -51,7 +51,7 @@ export default { index = tabs?.findIndex(e => id == e.name) if (id == this.currentTab) { let next = tabs?.[index + 1] || tabs?.[index - 1] - this.handleTabClick(next) + next ? this.handleTabClick(next) : this.$router.push({path: '/'}) } this.tabs.splice(index, 1) },