mirror of https://github.com/halo-dev/halo-admin
perf: add supports for storing navbar position (#865)
#### What type of PR is this? /kind improvement #### What this PR does / why we need it: 支持保存侧板滚动条位置,防止切换路由时侧边栏的抖动。 #### Which issue(s) this PR fixes: Fixes https://github.com/halo-dev/halo/issues/3240 #### Screenshots: before: ![2023-02-20 12 12 05](https://user-images.githubusercontent.com/21301288/220007834-12658cf2-e8a8-42ea-93b1-2c58419edbac.gif) after: ![2023-02-20 12 11 19](https://user-images.githubusercontent.com/21301288/220007742-58471b69-cfd1-4576-babd-5516d2c0de1d.gif) #### Special notes for your reviewer: 测试方式: 1. 调整浏览器高度,让侧边栏菜单区域出现滚动条。 2. 测试点击底部的任意菜单项,跳转页面之后,观察滚动条是否与之前的位置保持一致。 #### Does this PR introduce a user-facing change? ```release-note Console 端侧边栏滚动条支持缓存位置,防止切换路由时重置滚动条位置。 ```pull/873/head^2
parent
cf34b86540
commit
d396337d55
Loading…
Reference in new issue