-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. 连续多次触发 Turbo 驱动页面切换时, 存在当前页面未完全加载就直接导航到下个页面的情况时, 未获取到正确的页面类型; 原因可能是`window.location.href`及<head>中相关标记还未更新 2. 新增`pageConfig.triggerTarget`储存基于 Turbo 触发的下个页面的链接 3. 当`triggerTarget`存在时, `updatePageConfig 函数`优先使用它作为`detectPageType 函数`的输入URL 4. 通过`updatePageConfig 函数`重置`pageConfig.triggerTarget`, 与`pageConfig.pageChangeTrigger`类似 5. 此方法存在局限: 对于基于<head>中相关标记和<body>属性的页面判断规则不适用, 因为这些信息还未更新
- Loading branch information
Showing
1 changed file
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters