修改登录缓存问题
This commit is contained in:
@@ -2,10 +2,10 @@ import baseUrl from './BaseUrl.js'
|
||||
|
||||
export default function request(url, data = {}, method = 'GET') {
|
||||
return new Promise((resolve, reject) => {
|
||||
uni.showLoading({
|
||||
title: '请求中...',
|
||||
mask: true
|
||||
})
|
||||
// uni.showLoading({
|
||||
// title: '请求中...',
|
||||
// mask: true
|
||||
// })
|
||||
|
||||
uni.request({
|
||||
url: baseUrl + url,
|
||||
@@ -17,7 +17,7 @@ export default function request(url, data = {}, method = 'GET') {
|
||||
'content-type': 'application/json'
|
||||
},
|
||||
success: res => {
|
||||
uni.hideLoading()
|
||||
// uni.hideLoading()
|
||||
|
||||
// HTTP 失败
|
||||
if (res.statusCode !== 200) {
|
||||
@@ -63,7 +63,7 @@ export default function request(url, data = {}, method = 'GET') {
|
||||
}
|
||||
},
|
||||
fail: err => {
|
||||
uni.hideLoading()
|
||||
// uni.hideLoading()
|
||||
reject({
|
||||
msg: '网络异常',
|
||||
code: -1,
|
||||
|
||||
Reference in New Issue
Block a user