feat: Add default checkpoint root setting with dynamic options in settings modal

This commit is contained in:
Will Miao
2025-07-02 21:46:21 +08:00
parent 40ad590046
commit 49c4a4068b
3 changed files with 72 additions and 3 deletions

View File

@@ -255,7 +255,7 @@ export class CheckpointDownloadManager {
).join('');
// Set default checkpoint root if available
const defaultRoot = getStorageItem('settings', {}).default_checkpoints_root;
const defaultRoot = getStorageItem('settings', {}).default_checkpoint_root;
if (defaultRoot && data.roots.includes(defaultRoot)) {
checkpointRoot.value = defaultRoot;
}