Explorar o código

fix: 修改ai app名称等

liaojiaxing hai 1 mes
pai
achega
000afd6c7b

+ 0 - 1
src/components/ai/MarkdownViewer.tsx

@@ -48,7 +48,6 @@ const MarkdownViewer: React.FC<MarkdownViewerProps> = ({ content }) => {
           const match = /language-(\w+)/.exec(className || "");
           const match = /language-(\w+)/.exec(className || "");
           const code = String(children).replace(/\n$/, "");
           const code = String(children).replace(/\n$/, "");
           const language = match ? match[1] : "";
           const language = match ? match[1] : "";
-
           if (match) {
           if (match) {
             return (
             return (
               <div className="rounded-md overflow-hidden mb-4">
               <div className="rounded-md overflow-hidden mb-4">

+ 2 - 1
src/layouts/index.tsx

@@ -27,7 +27,8 @@ export default function Layout() {
   };
   };
 
 
   const handleToSchool = () => {
   const handleToSchool = () => {
-    window.open(`https://college.shalu.com`);
+    const  url  =  'https://college.shalu.com/Views/Account/SSOIndex.html?system=design&token=' + localStorage.getItem('token_a');
+    window.open(url);
   };
   };
 
 
   return (
   return (

+ 6 - 6
src/pages/ai/data.tsx

@@ -18,7 +18,7 @@ export type AgentItem = {
 
 
 export const assistantList: AgentItem[] = [
 export const assistantList: AgentItem[] = [
   {
   {
-    key: "app1",
+    key: "normal_ask",
     name: "综合问答",
     name: "综合问答",
     icon: icon1,
     icon: icon1,
     description: "基于LLM的智能助手,可以进行各种使用查询、知识问答等~",
     description: "基于LLM的智能助手,可以进行各种使用查询、知识问答等~",
@@ -41,7 +41,7 @@ export const assistantList: AgentItem[] = [
     ],
     ],
   },
   },
   {
   {
-    key: "app2",
+    key: "system_design",
     name: "系统设计",
     name: "系统设计",
     icon: icon2,
     icon: icon2,
     description: "可以进行各种系统方面的图形创建、使用说明,如: 流程图、系统架构图等等",
     description: "可以进行各种系统方面的图形创建、使用说明,如: 流程图、系统架构图等等",
@@ -59,7 +59,7 @@ export const assistantList: AgentItem[] = [
     ]
     ]
   },
   },
   {
   {
-    key: "app3",
+    key: "data_model",
     name: "数据模型",
     name: "数据模型",
     icon: icon3,
     icon: icon3,
     description: "关于数据模型的一些问题~",
     description: "关于数据模型的一些问题~",
@@ -77,7 +77,7 @@ export const assistantList: AgentItem[] = [
     ]
     ]
   },
   },
   {
   {
-    key: "app4",
+    key: "page_design",
     name: "页面设计",
     name: "页面设计",
     icon: icon4,
     icon: icon4,
     description: "表单设计器方面的使用方法~",
     description: "表单设计器方面的使用方法~",
@@ -95,7 +95,7 @@ export const assistantList: AgentItem[] = [
     ]
     ]
   },
   },
   {
   {
-    key: "app5",
+    key: "workflow_design",
     name: "流程设计",
     name: "流程设计",
     icon: icon5,
     icon: icon5,
     description: "不同流程的创建和使用",
     description: "不同流程的创建和使用",
@@ -113,7 +113,7 @@ export const assistantList: AgentItem[] = [
     ]
     ]
   },
   },
   {
   {
-    key: "app6",
+    key: "doc_generate",
     name: "文档生成",
     name: "文档生成",
     icon: icon6,
     icon: icon6,
     description: "文档管理方面的一些问题",
     description: "文档管理方面的一些问题",

+ 1 - 1
src/pages/application/index.tsx

@@ -124,7 +124,7 @@ export default function Home() {
             <Empty description="暂无数据" image={noDataImg} />
             <Empty description="暂无数据" image={noDataImg} />
           )}
           )}
           
           
-          <div className="h-200px w-full absolute left-0 top0 flex items-center justify-center">
+          <div className="h-200px w-full absolute left-0 top0 flex items-center justify-center pointer-events-none">
             <Spin spinning={loading}/>
             <Spin spinning={loading}/>
           </div>
           </div>
         </div>
         </div>

+ 1 - 1
src/pages/template/index.tsx

@@ -129,7 +129,7 @@ export default function Template() {
             <Empty description="暂无数据" image={noDataImg} />
             <Empty description="暂无数据" image={noDataImg} />
           )}
           )}
 
 
-          <div className="h-200px w-full absolute left-0 top0 flex items-center justify-center">
+          <div className="h-200px w-full absolute left-0 top0 flex items-center justify-center pointer-events-none">
             <Spin spinning={loading} />
             <Spin spinning={loading} />
           </div>
           </div>
         </div>
         </div>