Browse Source

更新对话页面

余思翰 2 weeks ago
parent
commit
ca77ae03b6
3 changed files with 768 additions and 151 deletions
  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 View File

1
 /*
1
 /*
2
  * @Author: wrh
2
  * @Author: wrh
3
  * @Date: 2025-04-07 12:47:46
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
 import { createWebHistory, createRouter } from 'vue-router'
7
 import { createWebHistory, createRouter } from 'vue-router'
8
 /* Layout */
8
 /* Layout */
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 View File

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

+ 765
- 122
llm-ui/src/views/llm/chat/index.vue
File diff suppressed because it is too large
View File


Loading…
Cancel
Save