feat(utils): 优化 Track 类以获取页面路径
- 在 Track 类中添加获取当前页面和前一页的逻辑 - 更新 prePagePath 和 pagePath 的赋值,使其更准确地反映页面路径 - 优化了页面路径的获取方式,提高了代码的健壮性
Showing
1 changed file
with
7 additions
and
3 deletions
-
Please register or sign in to post a comment
- 在 Track 类中添加获取当前页面和前一页的逻辑 - 更新 prePagePath 和 pagePath 的赋值,使其更准确地反映页面路径 - 优化了页面路径的获取方式,提高了代码的健壮性