Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
水玉婷
ai-wechat
Commits
72779ad7
Commit
72779ad7
authored
Apr 01, 2026
by
水玉婷
Browse files
feat:调整参数配置结构
parent
98bd0230
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/views/components/AiChat.vue
View file @
72779ad7
...
@@ -694,12 +694,13 @@ const getAppInfo = async () => {
...
@@ -694,12 +694,13 @@ const getAppInfo = async () => {
if
(
!
props
.
params
?.
appId
)
{
if
(
!
props
.
params
?.
appId
)
{
return
;
return
;
}
}
const
{
token
,
appCode
}
=
props
.
baseConfig
||
{};
const
response
=
await
fetch
(
`
${
import
.
meta
.
env
.
VITE_SSE_PATH
}
/apps/getAppInfoById/
${
props
.
params
?.
appId
}
`
,
{
const
response
=
await
fetch
(
`
${
import
.
meta
.
env
.
VITE_SSE_PATH
}
/apps/getAppInfoById/
${
props
.
params
?.
appId
}
`
,
{
method
:
'
GET
'
,
method
:
'
GET
'
,
headers
:
{
headers
:
{
'
token
'
:
props
.
baseConfig
?.
token
||
''
,
'
token
'
:
token
||
''
,
'
x-session-id
'
:
props
.
baseConfig
?.
token
||
''
,
'
x-session-id
'
:
token
||
''
,
'
x-app-code
'
:
props
.
baseConfig
?.
appCode
||
''
'
x-app-code
'
:
appCode
||
''
}
as
HeadersInit
}
as
HeadersInit
});
});
const
data
=
await
response
.
json
();
const
data
=
await
response
.
json
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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