Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
saas-manage
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
chehuidong
saas-manage
Commits
0d37e7c4
Commit
0d37e7c4
authored
Jul 22, 2025
by
wusiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 添加全局错误捕获
parent
04320ce6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
src/common/api/axios.js
+11
-9
No files found.
src/common/api/axios.js
View file @
0d37e7c4
...
...
@@ -71,15 +71,17 @@ axios.interceptors.response.use(
}
return
Promise
.
reject
(
res
.
data
)
}
else
if
(
res
.
data
.
code
===
500
)
{
Vue
.
prototype
.
$alert
(
'<div style="max-height:500px;overflow:auto">'
+
res
.
data
.
message
+
'</div>'
,
'错误提示'
,
{
dangerouslyUseHTMLString
:
true
}
)
Vue
.
prototype
.
$alert
(
'<div style="max-height:500px;overflow:auto">'
+
res
.
data
.
message
+
'</div>'
,
'错误提示'
,
{
dangerouslyUseHTMLString
:
true
}
)
.
catch
(()
=>
{})
}
}
else
{
if
(
res
.
status
===
400
)
{
...
...
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