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
31b09d74
Commit
31b09d74
authored
Nov 28, 2025
by
Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 工具参数
parent
9a7cbc00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/api/home.ts
+4
-4
No files found.
src/api/home.ts
View file @
31b09d74
...
...
@@ -10,12 +10,12 @@ export function fetchQuestionList(data: any) {
/**
* 查询工具列表
* @params params.userRole: 角色,用于按角色返回工具
* @params params.userRole
s
: 角色,用于按角色返回工具
*/
export
function
fetchToolList
(
params
?:
{
userRole
?:
string
})
{
export
function
fetchToolList
(
params
?:
{
userRole
s
?:
string
})
{
const
requestBody
:
Record
<
string
,
string
>
=
{
toolType
:
'03'
}
if
(
params
?.
userRole
)
requestBody
.
userRole
=
params
.
userRole
if
(
params
?.
userRole
s
)
requestBody
.
userRole
s
=
params
.
userRoles
return
http
.
post
(
'/config-center/api/tool/mobile/v1/get_tool_list'
,
requestBody
)
}
...
...
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