feat:个性化数据往云端同步

This commit is contained in:
hzm
2026-03-01 16:49:46 +08:00
parent 2a406be0b1
commit e7661e7b38
5 changed files with 187 additions and 25 deletions

View File

@@ -126,6 +126,7 @@ export default function PcFundTable({
refreshing = false,
sortBy = 'default',
onReorder,
onCustomSettingsChange,
}) {
const sensors = useSensors(
useSensor(PointerSensor, {
@@ -183,6 +184,7 @@ export default function PcFundTable({
? { ...parsed, pcTableColumns: nextSizing }
: { pcTableColumns: nextSizing };
window.localStorage.setItem('customSettings', JSON.stringify(nextSettings));
onCustomSettingsChange?.();
} catch { }
};
@@ -212,6 +214,7 @@ export default function PcFundTable({
? { ...parsed, pcTableColumnOrder: nextOrder }
: { pcTableColumnOrder: nextOrder };
window.localStorage.setItem('customSettings', JSON.stringify(nextSettings));
onCustomSettingsChange?.();
} catch { }
};
@@ -246,6 +249,7 @@ export default function PcFundTable({
? { ...parsed, pcTableColumnVisibility: nextVisibility }
: { pcTableColumnVisibility: nextVisibility };
window.localStorage.setItem('customSettings', JSON.stringify(nextSettings));
onCustomSettingsChange?.();
} catch { }
};