fix: sd3 model default select

This commit is contained in:
licoy
2024-07-12 10:32:06 +08:00
parent 2b0153807c
commit 74b915a790
2 changed files with 6 additions and 1 deletions

View File

@@ -23,7 +23,7 @@ const sdCommonParams = (model: string, data: any) => {
name: locales.SdPanel.ModelVersion,
value: "model",
type: "select",
default: 0,
default: "sd3-medium",
support: ["sd3"],
options: [
{ name: "SD3 Medium", value: "sd3-medium" },
@@ -311,6 +311,7 @@ export function SdPanel() {
img_data: "",
};
sendSdTask(data, sdListDb, execCountInc, () => {
console.log(currentModel.value);
setParams(getModelParamBasicData(columns, params, true));
});
};