Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
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
1
Merge Requests
1
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
qinjianhui
factory_front
Commits
1f0e8ec6
Commit
1f0e8ec6
authored
Apr 09, 2026
by
zhuzhequan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口请求前缀加/
parent
68198ae0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
src/api/axios.ts
+8
-1
No files found.
src/api/axios.ts
View file @
1f0e8ec6
...
...
@@ -51,7 +51,14 @@ axios.interceptors.response.use(
const
data
=
response
.
data
const
uuid
=
response
.
config
?.
headers
?.
uuid
const
item
=
findRequestItemByUUID
(
uuid
)
item
.
url
=
`
${
import
.
meta
.
env
.
VITE_API_BASE
}${
response
.
config
?.
url
}
`
if
(
response
.
config
.
url
){
if
(
response
.
config
.
url
.
startsWith
(
'/'
))
{
item
.
url
=
`
${
import
.
meta
.
env
.
VITE_API_BASE
}${
response
.
config
.
url
}
`
}
else
{
item
.
url
=
`
${
import
.
meta
.
env
.
VITE_API_BASE
}${
`/
${
response
.
config
.
url
}
`
}
`
}
}
const
fm
=
new
FormData
()
const
processTime
=
response
.
headers
[
'processtime'
]
const
endTime
=
dayjs
(
new
Date
()).
format
(
'YYYY-MM-DD HH:mm:ss.SSS'
)
...
...
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