Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-admin
Commits
3b00ea42
Commit
3b00ea42
authored
Apr 25, 2022
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 统一1102状态码提示
parent
79d68245
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
request.ts
src/utils/request.ts
+9
-0
No files found.
src/utils/request.ts
View file @
3b00ea42
...
...
@@ -114,6 +114,15 @@ class ApiRequest {
return
false
}
// 统一拦截 参数校验错误,显示后端返回的状态信息
// @todo 这里不需要国际化
if
(
res
.
code
===
1102
)
{
message
.
error
(
res
.
message
)
reject
(
res
)
return
false
}
if
(
res
.
code
===
1000
)
{
if
(
options
.
ctlType
===
'message'
)
{
message
.
destroy
()
...
...
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