请求失败的提示
This commit is contained in:
@ -285,9 +285,9 @@
|
|||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
// 请求失败的回调函数
|
// 请求失败的回调函数
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请求失败' + err,
|
title: '请求失败:' + err.errMsg,
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
duration: 4000
|
duration: 3000
|
||||||
});
|
});
|
||||||
|
|
||||||
this.clear();
|
this.clear();
|
||||||
@ -359,9 +359,9 @@
|
|||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
// 请求失败的回调函数
|
// 请求失败的回调函数
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请求失败' + err,
|
title: '请求失败:' + err.errMsg,
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
duration: 4000
|
duration: 3000
|
||||||
});
|
});
|
||||||
|
|
||||||
this.clear();
|
this.clear();
|
||||||
|
Reference in New Issue
Block a user