mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-24 16:27:23 +08:00
🐞 fix: 修复调整窗口大小 歌单列表重新加载问题
This commit is contained in:
@@ -100,11 +100,6 @@ const updateItemsPerRow = () => {
|
|||||||
else if (width > 1200) ITEMS_PER_ROW.value = 8;
|
else if (width > 1200) ITEMS_PER_ROW.value = 8;
|
||||||
else if (width > 768) ITEMS_PER_ROW.value = 6;
|
else if (width > 768) ITEMS_PER_ROW.value = 6;
|
||||||
else ITEMS_PER_ROW.value = 5;
|
else ITEMS_PER_ROW.value = 5;
|
||||||
|
|
||||||
// 如果已经加载了数据,重新加载以适应新的布局
|
|
||||||
if (route.query.type && recommendList.value) {
|
|
||||||
loadList(route.query.type as string);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user