Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit daa3cd4d
authored
Dec 29, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改请求错误提示
1 parent
c6bde7aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
utils/request/request.js
utils/request/request.js
View file @
daa3cd4
...
@@ -60,7 +60,7 @@ class Request {
...
@@ -60,7 +60,7 @@ class Request {
}
else
{
}
else
{
// console.trace(data)
// console.trace(data)
wx
.
showToast
({
wx
.
showToast
({
title
:
message
||
'
系统异常
'
,
title
:
message
||
'
接口请求失败
'
,
icon
:
'none'
icon
:
'none'
})
})
}
}
...
@@ -70,7 +70,7 @@ class Request {
...
@@ -70,7 +70,7 @@ class Request {
wx
.
hideLoading
()
wx
.
hideLoading
()
console
.
log
(
`接口异常:`
,
error
)
console
.
log
(
`接口异常:`
,
error
)
wx
.
showToast
({
wx
.
showToast
({
title
:
'
系统异常
'
,
title
:
'
接口请求失败
'
,
icon
:
'error'
icon
:
'error'
})
})
reject
(
error
)
reject
(
error
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment