Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uni-app-ddh-shop
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
zhanhai
uni-app-ddh-shop
Commits
a2c8fe8e
Commit
a2c8fe8e
authored
Oct 18, 2024
by
ly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
错误信息判断
parent
d10786c0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
20 deletions
+29
-20
login.vue
pages/login/login.vue
+6
-0
app-service.js
unpackage/dist/dev/app-plus/app-service.js
+15
-15
request.js
utils/request.js
+8
-5
No files found.
pages/login/login.vue
View file @
a2c8fe8e
...
...
@@ -115,6 +115,12 @@ export default {
}
}).
catch
(
err
=>
{
console
.
log
(
err
,
'请求出错'
)
uni
.
showToast
({
title
:
err
.
message
,
icon
:
"none"
,
duration
:
2000
})
})
},
// 获取验证码倒计时
...
...
unpackage/dist/dev/app-plus/app-service.js
View file @
a2c8fe8e
This source diff could not be displayed because it is too large. You can
view the blob
instead.
utils/request.js
View file @
a2c8fe8e
...
...
@@ -63,11 +63,14 @@ const request = async (url, type, data) => {
}
},
fail
:
(
err
)
=>
{
const
locationInfo
=
uni
.
getStorageSync
(
'm-location-info'
)
if
(
locationInfo
){
uni
.
showToast
({
title
:
err
.
message
?
err
.
message
:
'服务器开小差了~'
,
icon
:
"none"
,
duration
:
2000
})
}
reject
(
err
)
}
});
...
...
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