From 1e63379088e1d7c823f29f607ab49d62ca22cb25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=A0=E6=9C=A8?= Date: Wed, 14 Jul 2021 20:44:52 +0800 Subject: [PATCH] fix(multiple-tab): ignore login page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复标签页可能会创建登录页面标签的问题 --- CHANGELOG.zh_CN.md | 1 + src/store/modules/multipleTab.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.zh_CN.md b/CHANGELOG.zh_CN.md index 7b9b5d69..2f7415ad 100644 --- a/CHANGELOG.zh_CN.md +++ b/CHANGELOG.zh_CN.md @@ -23,6 +23,7 @@ - **Breadcrumb** 修复带有重定向的菜单点击无法跳转的问题 - **Markdown** 修复初始化异常以及不能正确地动态设置 value 的问题 - **Modal** 确保 props 正确被传递 +- **MultipleTab** 修复可能会意外创建登录路由标签的问题 - **其它** - 修复菜单默认折叠的配置不起作用的问题 - 修复`safari`浏览器报错导致网站打不开 diff --git a/src/store/modules/multipleTab.ts b/src/store/modules/multipleTab.ts index 0c5fbc1b..8fbbeeb8 100644 --- a/src/store/modules/multipleTab.ts +++ b/src/store/modules/multipleTab.ts @@ -114,6 +114,7 @@ export const useMultipleTabStore = defineStore({ // 404 The page does not need to add a tab if ( path === PageEnum.ERROR_PAGE || + path === PageEnum.BASE_LOGIN || !name || [REDIRECT_ROUTE.name, PAGE_NOT_FOUND_ROUTE.name].includes(name as string) ) { -- GitLab