Dogtiti 1 год назад
Родитель
Сommit
2a1c05a028
3 измененных файлов с 3 добавлено и 3 удалено
  1. 2 1
      app/components/sd/sd-sidebar.tsx
  2. 0 1
      app/components/sd/sd.tsx
  3. 1 1
      app/constant.ts

+ 2 - 1
app/components/sd/sd-sidebar.tsx

@@ -63,6 +63,7 @@ export function SideBar(props: { className?: string }) {
     };
     sdStore.sendTask(data, () => {
       setParams(getModelParamBasicData(columns, params, true));
+      navigate(Path.SdNew);
     });
   };
 
@@ -113,7 +114,7 @@ export function SideBar(props: { className?: string }) {
               onClick={() => navigate(Path.Home)}
             />
           }
-          logo={<SDIcon width={38} height={38} />}
+          logo={<SDIcon width={38} height={"100%"} />}
         ></SideBarHeader>
       )}
       <SideBarBody>

+ 0 - 1
app/components/sd/sd.tsx

@@ -80,7 +80,6 @@ function getSdTaskStatus(item: any) {
             });
           }}
         >
-          {" "}
           - {item.error}
         </span>
       )}

+ 1 - 1
app/constant.ts

@@ -87,7 +87,6 @@ export const REQUEST_TIMEOUT_MS = 60000;
 export const EXPORT_MESSAGE_CLASS_NAME = "export-markdown";
 
 export enum ServiceProvider {
-  Stability = "Stability",
   OpenAI = "OpenAI",
   Azure = "Azure",
   Google = "Google",
@@ -95,6 +94,7 @@ export enum ServiceProvider {
   Baidu = "Baidu",
   ByteDance = "ByteDance",
   Alibaba = "Alibaba",
+  Stability = "Stability",
 }
 
 // Google API safety settings, see https://ai.google.dev/gemini-api/docs/safety-settings