-
Notifications
You must be signed in to change notification settings - Fork 0
doc: 增加部分注释 #1
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
base: master
Are you sure you want to change the base?
doc: 增加部分注释 #1
Conversation
| * @version 1.0.0 | ||
| */ | ||
| function combine(paths: readonly any[]): string { | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
你破坏了原有的注释
| } | ||
|
|
||
| /** | ||
| * 根据路径解析路由并刷新组件 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
没有直接刷新组件的操作,都是间接影响
| } | ||
|
|
||
| /** | ||
| * 重载页面:访问Reload路径后,访问目标路径 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
访问Reload的目的是完全卸载页面呈现的组件
| const target = (e.target as HTMLElement)?.closest("a"); | ||
|
|
||
| if (target) { | ||
| // 禁止外部网站跳转 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
啊?
|
|
||
| // 阻止浏览器默认操作 | ||
| e.preventDefault(); | ||
| // 刷新组件并压栈 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?导航到新页面?
| * 组件挂载初始化逻辑 | ||
| */ | ||
| useMount(() => { | ||
| // ?/路径数据清除 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?/是怎么来的,为什么要清除,清除后又做了什么?
No description provided.