mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-25 00:37:24 +08:00
fix(player): 修复迷你模式恢复后歌词页面空白偏移
迷你播放栏的 togglePlaylist 设置 document.body.style.height='64px' 和 overflow='hidden',恢复主窗口时未清理,导致歌词 drawer 高度被限制。 在 mini-mode 事件处理中添加 body 样式重置。
This commit is contained in:
@@ -105,6 +105,9 @@ if (isElectron) {
|
|||||||
localStorage.setItem('currentRoute', router.currentRoute.value.path);
|
localStorage.setItem('currentRoute', router.currentRoute.value.path);
|
||||||
router.push('/mini');
|
router.push('/mini');
|
||||||
} else {
|
} else {
|
||||||
|
// 清理迷你模式下设置的 body 样式
|
||||||
|
document.body.style.height = '';
|
||||||
|
document.body.style.overflow = '';
|
||||||
// 恢复当前路由
|
// 恢复当前路由
|
||||||
const currentRoute = localStorage.getItem('currentRoute');
|
const currentRoute = localStorage.getItem('currentRoute');
|
||||||
if (currentRoute) {
|
if (currentRoute) {
|
||||||
|
|||||||
Reference in New Issue
Block a user