Bläddra i källkod

更新对话页面

余思翰 2 veckor sedan
förälder
incheckning
ca77ae03b6
3 ändrade filer med 768 tillägg och 151 borttagningar
  1. 2
    28
      llm-ui/src/router/index.js
  2. 1
    1
      llm-ui/src/utils/request.js
  3. 765
    122
      llm-ui/src/views/llm/chat/index.vue

+ 2
- 28
llm-ui/src/router/index.js Visa fil

@@ -1,8 +1,8 @@
1 1
 /*
2 2
  * @Author: wrh
3 3
  * @Date: 2025-04-07 12:47:46
4
- * @LastEditors: wrh
5
- * @LastEditTime: 2025-06-11 11:21:06
4
+ * @LastEditors: Please set LastEditors
5
+ * @LastEditTime: 2025-06-23 15:03:05
6 6
  */
7 7
 import { createWebHistory, createRouter } from 'vue-router'
8 8
 /* Layout */
@@ -90,32 +90,6 @@ export const constantRoutes = [
90 90
       }
91 91
     ]
92 92
   },
93
-  {
94
-    path: '/llm/chat',
95
-    component: Layout,
96
-    hidden: true,
97
-    children: [
98
-      {
99
-        path: '',
100
-        component: () => import('@/views/llm/chat/index'),
101
-        name: 'Chat',
102
-        meta: { title: '对话', icon: '' }
103
-      }
104
-    ]
105
-  },
106
-  {
107
-    path: '/llm/knowledge',
108
-    component: Layout,
109
-    hidden: true,
110
-    children: [
111
-      {
112
-        path: '',
113
-        component: () => import('@/views/llm/knowledge/index'),
114
-        name: 'Knowledge',
115
-        meta: { title: '知识库', icon: '' }
116
-      }
117
-    ]
118
-  }
119 93
 ]
120 94
 
121 95
 // 动态路由,基于用户权限动态去加载

+ 1
- 1
llm-ui/src/utils/request.js Visa fil

@@ -17,7 +17,7 @@ const service = axios.create({
17 17
   // axios中请求配置有baseURL选项,表示请求URL公共部分
18 18
   baseURL: import.meta.env.VITE_APP_BASE_API,
19 19
   // 超时
20
-  timeout: 10000
20
+  timeout: 999999
21 21
 })
22 22
 
23 23
 // request拦截器

+ 765
- 122
llm-ui/src/views/llm/chat/index.vue
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


Loading…
Avbryt
Spara