Commit 7a2f7a16 by 张立顺

修改请求失败提示

1 parent daa3cd4d
...@@ -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)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!