页面显示时的加载全局配置,关闭
This commit is contained in:
parent
e9b9e26af0
commit
7fec77bc9d
|
|
@ -314,10 +314,10 @@ export function request(options = {}) {
|
||||||
hasParams: !!(options.params && Object.keys(options.params).length > 0),
|
hasParams: !!(options.params && Object.keys(options.params).length > 0),
|
||||||
})
|
})
|
||||||
|
|
||||||
// 显示loading(默认显示,但减少延迟)
|
// // 显示loading(默认显示,但减少延迟)
|
||||||
if (options.showLoading !== false) {
|
// if (options.showLoading !== false) {
|
||||||
showLoading(options.loadingText || loadingConfig.loadingText)
|
// showLoading(options.loadingText || loadingConfig.loadingText)
|
||||||
}
|
// }
|
||||||
|
|
||||||
uni.request(requestOptions)
|
uni.request(requestOptions)
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user