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

fix: set navbar a default value #735

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

Jayden12138
Copy link
Contributor

  1. set a href default value
  2. add type to HEADER_OPTIONS

It's pointless!There is no default value set.

optItem.target ?? optItem.target

// https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/a#target
=> optItem.target ?? '_self'

optItem.target ?? '_self' is equivalent to optItem.target ? optItem.target : '_self'

@yaolifeng0629 yaolifeng0629 self-requested a review July 9, 2024 01:46
yaolifeng0629
yaolifeng0629 approved these changes Jul 9, 2024
@yaolifeng0629 yaolifeng0629 merged commit 540739b into cuixueshe:main Jul 12, 2024
1 check passed
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