From c00018075b4f4c7a933734045996e222ddec1ed4 Mon Sep 17 00:00:00 2001 From: long <515897141@qq.com> Date: 星期五, 16 七月 2021 11:19:46 +0800 Subject: [PATCH] 功能展示页:优化列表高度计算 --- src/utils/http.js | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/utils/http.js b/src/utils/http.js index 70f0a45..b820a65 100644 --- a/src/utils/http.js +++ b/src/utils/http.js @@ -151,7 +151,11 @@ // o.baseUrl 鍩烘湰璺緞 // udData Object锛氬嵆userDefined Data 鐢ㄦ埛鑷畾涔夋暟鎹紝杩欐槸涓�涓墿灞曞瓧娈� // fullData 杩欎釜瀛楁涓虹湡鐨勮瘽锛屽皢杩斿洖 鏈嶅姟绔繑鍥炵殑鎵�鏈夋暟鎹紝榛樿杩斿洖data - requestArr.push(request_o) // 灏嗚姹傚姞鍏ユ暟缁� + // 20210303 long 浼樺寲璇锋眰缁撴潫loading 灏唍oLoading涓嶈绠楀璇锋眰鏁扮粍 + if (request_o && (!request_o.udData || !request_o.udData.noLoading)) { + requestArr.push(request_o) // 灏嗚姹傚姞鍏ユ暟缁� + } + // requestArr.push(request_o) // 灏嗚姹傚姞鍏ユ暟缁� if (http_o.startRequest) { http_o.startRequest(http_o, request_o) // 浜嬩欢濮旀墭,璇锋眰涔嬪墠 } @@ -178,8 +182,8 @@ } // // 灏嗚姹傚弬鏁版斁鍒伴摼鎺ュ悗闈� var paramsUrl = urlEncode(urlEncodes) - if(!/\?/.test(ajaxUrl)) { - paramsUrl = paramsUrl.replace('&', '?') + if (!/\?/.test(ajaxUrl)) { + paramsUrl = paramsUrl.replace('&', '?') } ajaxUrl = ajaxUrl + paramsUrl -- Gitblit v1.8.0