Skip to content

Commit

Permalink
fix(multiple-tab): ignore login page
Browse files Browse the repository at this point in the history
修复标签页可能会创建登录页面标签的问题
  • Loading branch information
mynetfan committed Jul 14, 2021
1 parent 237e65e commit 1e63379
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
- **Breadcrumb** 修复带有重定向的菜单点击无法跳转的问题
- **Markdown** 修复初始化异常以及不能正确地动态设置 value 的问题
- **Modal** 确保 props 正确被传递
- **MultipleTab** 修复可能会意外创建登录路由标签的问题
- **其它**
- 修复菜单默认折叠的配置不起作用的问题
- 修复`safari`浏览器报错导致网站打不开
Expand Down
1 change: 1 addition & 0 deletions src/store/modules/multipleTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
) {
Expand Down

0 comments on commit 1e63379

Please sign in to comment.