diff --git a/src/components/scroll.vue b/src/components/scroll.vue index 10fbfb7..3ad37e5 100644 --- a/src/components/scroll.vue +++ b/src/components/scroll.vue @@ -87,7 +87,7 @@ function draw() { /** * 计算元素总长度 */ -async function calHeight(first: boolean) { +async function calHeight(first: boolean = false) { if (!first) { await sleep(20); } @@ -207,6 +207,7 @@ onMounted(async () => { window.addEventListener('resize', resize); await calHeight(true); + await calHeight(); draw(); }); diff --git a/src/core/main/init/settings.tsx b/src/core/main/init/settings.tsx index 9bf462c..8e62a64 100644 --- a/src/core/main/init/settings.tsx +++ b/src/core/main/init/settings.tsx @@ -38,9 +38,14 @@ function BooleanSetting(props: SettingComponentProps) { }; return ( -
+
当前 {item.value ? '开启' : '关闭'} -
@@ -55,7 +60,7 @@ function NumberSetting(props: SettingComponentProps) { }; return ( -
+
修改设置: +