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
16b51f8a
Commit
16b51f8a
authored
Jul 13, 2026
by
Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:测试环境配置&&接口get请求
parent
af890d28
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
rsbuild.config.ts
+2
-2
src/api/common.ts
+9
-4
No files found.
rsbuild.config.ts
View file @
16b51f8a
...
...
@@ -5,9 +5,9 @@ import { pluginSvgr } from '@rsbuild/plugin-svgr'
import
type
{
EnvConfKey
}
from
'./src/config/env'
import
{
envConf
}
from
'./src/config/env'
const
mode
=
process
.
env
.
MODE
as
EnvConfKey
||
'dev'
const
{
parsed
:
env
}
=
loadEnv
({
cwd
:
process
.
cwd
()
})
const
{
parsed
:
env
}
=
loadEnv
({
mode
,
cwd
:
process
.
cwd
()
})
const
mode
=
(
env
.
MODE
as
EnvConfKey
)
||
'dev'
const
apiUrl
=
envConf
[
mode
].
apiUrl
||
''
const
proxyUrl
=
envConf
[
mode
].
proxyUrl
||
''
...
...
src/api/common.ts
View file @
16b51f8a
...
...
@@ -74,8 +74,10 @@ export function fetchUploadWorkflowFile(file: File) {
* 验证 SDK 版本是否最新
*/
export
function
fetchValidateSdkVersion
()
{
return
http
.
post
(
'/manager/sdk/v1/online'
,
{
sdkType
:
1
,
return
http
.
get
(
'/manager/sdk/v1/online'
,
{
params
:
{
sdkType
:
1
,
},
})
}
...
...
@@ -83,7 +85,10 @@ export function fetchValidateSdkVersion() {
* 下载 SDK
*/
export
function
fetchDownloadSdk
()
{
return
http
.
post
(
'/manager/api/oss/sdk/v1/download'
,
{
sdkType
:
1
,
return
http
.
get
(
'/manager/api/oss/sdk/v1/download'
,
{
params
:
{
sdkType
:
1
,
},
responseType
:
'blob'
,
})
}
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