fix: clear instances when page hidden
This commit is contained in:
@@ -156,3 +156,13 @@ export const promptList = [
|
||||
'A full shot of two people jogging at sunset, featuring a vibrant, warm color palette shifting from twilight blues to peachy-orange tones, with visible sun rays and lens flares, conveying a sense of leisure and athleticism.',
|
||||
'A close-up portrait of a golden retriever wearing black-framed glasses, exhibiting a rich golden-brown coat with a fluffy texture, and a neutral, light gray background.'
|
||||
];
|
||||
|
||||
export const extractErrorMessage = (result: any) => {
|
||||
return (
|
||||
result?.data?.data?.detail ||
|
||||
result?.data?.data?.message ||
|
||||
result?.data?.error?.message ||
|
||||
result?.data?.error ||
|
||||
''
|
||||
);
|
||||
};
|
||||
|
||||
@@ -451,7 +451,7 @@ export const ImageCustomSizeConfig: ParamsSchema[] = [
|
||||
min: 256,
|
||||
max: 3200,
|
||||
step: 64,
|
||||
inputnumber: true
|
||||
inputnumber: false
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
@@ -471,7 +471,7 @@ export const ImageCustomSizeConfig: ParamsSchema[] = [
|
||||
min: 256,
|
||||
max: 3200,
|
||||
step: 64,
|
||||
inputnumber: true
|
||||
inputnumber: false
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user