Skip to content

Conversation

@HarryG55
Copy link
Member

No description provided.

* @version 1.0.0
*/
function combine(paths: readonly any[]): string {

Copy link
Member

Choose a reason for hiding this comment

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

你破坏了原有的注释

}

/**
* 根据路径解析路由并刷新组件
Copy link
Member

Choose a reason for hiding this comment

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

没有直接刷新组件的操作,都是间接影响

}

/**
* 重载页面:访问Reload路径后,访问目标路径
Copy link
Member

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) {
// 禁止外部网站跳转
Copy link
Member

Choose a reason for hiding this comment

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

啊?


// 阻止浏览器默认操作
e.preventDefault();
// 刷新组件并压栈
Copy link
Member

Choose a reason for hiding this comment

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

?导航到新页面?

* 组件挂载初始化逻辑
*/
useMount(() => {
// ?/路径数据清除
Copy link
Member

Choose a reason for hiding this comment

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

?/是怎么来的,为什么要清除,清除后又做了什么?

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.

3 participants