Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sdream-ai-fe
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
侯明涛
sdream-ai-fe
Commits
329dce88
Commit
329dce88
authored
Dec 08, 2025
by
Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:提问接口参数
parent
9336bcb8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
5 deletions
+21
-5
src/pages/Chat/Chat.tsx
+4
-0
src/pages/ChatTactics/Chat.tsx
+4
-0
src/pages/Home/HomeNew.tsx
+13
-5
No files found.
src/pages/Chat/Chat.tsx
View file @
329dce88
...
...
@@ -239,6 +239,8 @@ export const Chat: React.FC = () => {
/** 提交问题 */
const
handleSubmitQuestion
=
async
(
question
:
string
,
productCode
?:
string
,
toolId
?:
string
)
=>
{
const
resolvedToolId
=
toolId
??
currentToolId
??
undefined
const
busiType
=
'01'
const
recordType
=
'A01'
// 停止之前的请求
if
(
abortControllerRef
.
current
)
{
abortControllerRef
.
current
.
abort
()
...
...
@@ -288,6 +290,8 @@ export const Chat: React.FC = () => {
stream
:
true
,
productCode
,
toolId
:
resolvedToolId
,
busiType
,
recordType
,
},
(
msg
)
=>
{
// 检查是否已被取消
...
...
src/pages/ChatTactics/Chat.tsx
View file @
329dce88
...
...
@@ -240,6 +240,8 @@ export const Chat: React.FC = () => {
/** 提交问题 */
const
handleSubmitQuestion
=
async
(
question
:
string
,
productCode
?:
string
,
toolId
?:
string
)
=>
{
const
resolvedToolId
=
toolId
??
currentToolId
??
undefined
const
busiType
=
'02'
const
recordType
=
'A02'
// 停止之前的请求
if
(
abortControllerRef
.
current
)
{
abortControllerRef
.
current
.
abort
()
...
...
@@ -289,6 +291,8 @@ export const Chat: React.FC = () => {
stream
:
true
,
productCode
,
toolId
:
resolvedToolId
,
busiType
,
recordType
,
},
(
msg
)
=>
{
// 检查是否已被取消
...
...
src/pages/Home/HomeNew.tsx
View file @
329dce88
...
...
@@ -7,6 +7,8 @@ import styles from './Home.module.less'
import
{
QuestionList
}
from
'./components/QuestionList'
import
HomeIcon2
from
'@/assets/homeIcon2.png'
import
SmartIce
from
'@/assets/smart-ice.png'
import
DeleteIcon
from
'@/assets/svg/delete.svg'
import
RefreshIcon
from
'@/assets/svg/refresh.svg'
import
{
clearCurrentToolId
,
createConversation
,
fetchConversations
,
setCurrentToolId
}
from
'@/store/conversationSlice'
import
{
useAppDispatch
}
from
'@/store/hook'
import
{
fetchEfficiencyQuestionList
}
from
'@/api/home'
...
...
@@ -264,9 +266,15 @@ export const Home: React.FC = () => {
<
div
className=
"box flex flex-col h-full w-full"
>
<
div
className=
"flex-1 items-center pt-[24px] sm:pt-[32px] scrollbar-hide"
>
{
isFromTactics
&&
(
<
div
className=
"flex items-center text-right justify-end"
>
<
div
>
清空历史
</
div
>
<
div
>
重新分析
</
div
>
<
div
className=
"flex items-center justify-end gap-[20px] text-[14px] leading-[22px] text-[#2F88FF]"
>
<
div
className=
"flex items-center gap-[6px] cursor-pointer"
>
<
img
src=
{
DeleteIcon
}
alt=
"清除记录"
className=
"w-[14px] h-[14px]"
/>
<
span
>
清除记录
</
span
>
</
div
>
<
div
className=
"flex items-center gap-[6px] cursor-pointer"
>
<
img
src=
{
RefreshIcon
}
alt=
"重新分析"
className=
"w-[14px] h-[14px]"
/>
<
span
>
重新分析
</
span
>
</
div
>
</
div
>
)
}
<
div
className=
"w-full"
>
...
...
@@ -312,10 +320,10 @@ export const Home: React.FC = () => {
</>
)
}
{
/* 右侧区域 */
}
<
div
className=
"hidden sm:flex
flex-1 h-full
"
>
<
div
className=
"hidden sm:flex
h-full flex-none ml-auto
"
>
<
div
className=
"w-full h-full bg-transparent box-border rounded-[24px]"
style=
{
{
height
:
'calc(100vh - 64px)'
,
background
:
'#FFFFFF'
,
padding
:
'0 30px'
}
}
style=
{
{
width
:
'420px'
,
height
:
'calc(100vh - 64px)'
,
background
:
'#FFFFFF'
,
padding
:
'0 30px'
}
}
>
<
Outlet
/>
</
div
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment