feat: 设置弹框组件样式调整
This commit is contained in:
@@ -2585,9 +2585,11 @@ export default function HomePage() {
|
||||
await refreshAll(codes);
|
||||
};
|
||||
|
||||
const saveSettings = (e) => {
|
||||
const saveSettings = (e, secondsOverride) => {
|
||||
e?.preventDefault?.();
|
||||
const ms = Math.max(30, Number(tempSeconds)) * 1000;
|
||||
const seconds = secondsOverride ?? tempSeconds;
|
||||
const ms = Math.max(30, Number(seconds)) * 1000;
|
||||
setTempSeconds(Math.round(ms / 1000));
|
||||
setRefreshMs(ms);
|
||||
storageHelper.setItem('refreshMs', String(ms));
|
||||
const w = Math.min(2000, Math.max(600, Number(containerWidth) || 1200));
|
||||
|
||||
Reference in New Issue
Block a user