Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
9648c432
Commit
9648c432
authored
Apr 12, 2026
by
shaw
Browse files
fix(frontend): resolve TS2352 type assertion error in API client
parent
a1a28368
Changes
1
Show whitespace changes
Inline
Side-by-side
frontend/src/api/client.ts
View file @
9648c432
...
...
@@ -92,7 +92,7 @@ apiClient.interceptors.response.use(
response
.
data
=
apiResponse
.
data
}
else
{
// API error
const
resp
=
apiResponse
as
Record
<
string
,
unknown
>
const
resp
=
apiResponse
as
unknown
as
Record
<
string
,
unknown
>
return
Promise
.
reject
({
status
:
response
.
status
,
code
:
apiResponse
.
code
,
...
...
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