Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcxy-manage-shell
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜雷
dcxy-manage-shell
Commits
98e35778
Commit
98e35778
authored
Jun 21, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into 'test'
添加接口错误不弹出错误提示功能 See merge request
!167
parents
e8e1a1b2
0f0efc90
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
dashboard.js
src/api/dashboard/dashboard.js
+1
-0
validate.js
src/api/validate.js
+2
-2
No files found.
src/api/dashboard/dashboard.js
View file @
98e35778
...
...
@@ -40,5 +40,6 @@ export const getFeedbackList = req =>
export
const
getWarnningCount
=
req
=>
fetch
({
url
:
devicePath
+
'/device/warning/count'
,
noErrorAlert
:
true
,
...
req
,
});
src/api/validate.js
View file @
98e35778
...
...
@@ -33,7 +33,7 @@ export const validateCode = res => {
};
export
const
errorHandle
=
error
=>
{
console
.
error
(
'err'
+
error
);
// for debug
console
.
table
([
'fetchError: '
,
error
]
);
// for debug
store
.
dispatch
(
'fetchDone'
);
if
(
error
.
message
&&
/timeout/
.
test
(
error
.
message
))
{
Message
({
...
...
@@ -45,7 +45,7 @@ export const errorHandle = error => {
}
if
(
isCancel
(
error
))
{
console
.
log
(
'取消请求'
);
}
else
{
}
else
if
(
!
error
.
config
.
noErrorAlert
)
{
Message
({
message
:
error
.
message
,
type
:
'error'
,
...
...
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