fix: change default column to auto

This commit is contained in:
GyDi
2022-12-14 16:56:33 +08:00
parent 8879a0ce8a
commit ef0de04a0f
3 changed files with 4 additions and 5 deletions

View File

@@ -31,10 +31,10 @@ export const useRenderList = (mode: string) => {
const { verge } = useVerge();
const { width } = useWindowWidth();
let col = verge?.proxy_layout_column || 1;
let col = Math.floor(verge?.proxy_layout_column || 6);
// 自适应
if (col === 6) {
if (col >= 6 || col <= 0) {
if (width > 1450) col = 5;
else if (width > 1024) col = 4;
else if (width > 900) col = 3;