refactor(baseModelApi): update example images path retrieval to use state settings

This commit is contained in:
Will Miao
2025-09-15 18:07:22 +08:00
parent 4bb8981e78
commit 4540e47055

View File

@@ -938,8 +938,8 @@ export class BaseModelApiClient {
ws.onerror = reject;
});
// Get the output directory from storage
const outputDir = getStorageItem('example_images_path', '');
// Get the output directory from state
const outputDir = state.global?.settings?.example_images_path || '';
if (!outputDir) {
throw new Error('Please set the example images path in the settings first.');
}