Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: compatible with server menus #121

Merged
merged 3 commits into from
Jun 14, 2022
Merged

feat: compatible with server menus #121

merged 3 commits into from
Jun 14, 2022

Conversation

sHow8e
Copy link
Member

@sHow8e sHow8e commented Jun 13, 2022

Types of changes

  • New feature
  • Bug fix
  • Documentation change
  • Coding style change
  • Refactoring
  • Performance improvement
  • Test cases
  • Continuous integration
  • Typescript definition change
  • Breaking change

Background and context

#117

Solution

How is the change tested?

Changelog

Changelog(CN) Changelog(EN) Related issues

Checklist:

  • Provide changelog for relevant changes (e.g. bug fixes and new features) if applicable.
  • Changes are submitted to the appropriate branch (e.g. features should be submitted to feature branch and others should be submitted to master branch)

Other information

Copy link
Contributor

@dyggod dyggod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some question

Comment on lines +21 to +25
if (
!appStore.appAsyncMenus.length &&
!WHITE_LIST.find((el) => el.name === to.name)
) {
await appStore.fetchServerMenuConfig();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我理解主要做的事还是这L21~L25这五行?其他的没太理解,只是将守卫给统一了,不单独做server menu的守卫了吗?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

先说明一下这5行。主要是一些场景的处理,比如进入'login', 'notFound'这些页面就没必要去进行请求了。算是一个场景优化。其余的调整主要是针对流程上的梳理,先针对用户是否登录进行处理,再对页面进行鉴权。

@sHow8e sHow8e added this to the 2.5.4 milestone Jun 14, 2022
@sHow8e sHow8e merged commit 2686476 into main Jun 14, 2022
@sHow8e sHow8e deleted the feat-server-menu branch June 14, 2022 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants