Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
Project
Project
Details
Activity
Releases
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
panyongping
uni-pdtravel
Commits
b5bd4a6a
Commit
b5bd4a6a
authored
Feb 06, 2024
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
其实修改
parent
cf40545b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
request.js
common/request.js
+2
-2
No files found.
common/request.js
View file @
b5bd4a6a
...
...
@@ -23,7 +23,7 @@ const request = (url = '', data = {},showLoad) => {
success
(
res
)
{
uni
.
hideLoading
()
if
(
res
.
statusCode
==
'200'
){
//请求成功,状态
成功
//请求成功,状态
正确
resolve
(
res
.
data
)
}
else
{
//请求成功,状态不对
...
...
@@ -43,7 +43,7 @@ const request = (url = '', data = {},showLoad) => {
let
networkType
=
res
.
networkType
if
(
networkType
===
'none'
)
{
//none是没有网络
uni
.
showToast
({
title
:
'网络
断开
'
,
title
:
'网络
异常
'
,
icon
:
'none'
,
duration
:
4000
})
...
...
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