更新:loading加载时机问题
This commit is contained in:
@@ -23,7 +23,7 @@ export function createRequestClient(cfg: ICreateClientConfig) {
|
||||
const intercepted = requestInterceptor(final as IRequestOptions);
|
||||
|
||||
// 全局处理请求 loading
|
||||
const loading = !cfg.loading ? true : cfg.loading // 接口请求参数不传loading,默认显示loading
|
||||
const loading = cfg.loading ?? true // 接口请求参数不传loading,默认显示loading
|
||||
if (loading) {
|
||||
uni.showLoading({ mask: true })
|
||||
reqCount++
|
||||
|
||||
Reference in New Issue
Block a user