From 3d822ed641662e6ea299bdbe7e8764e938d56ab3 Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Mon, 13 Jul 2026 18:20:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(util):=20=E8=A1=A5=E5=85=A8wap=5Furl?= =?UTF-8?q?=E5=85=AC=E5=85=B1=E5=8F=82=E6=95=B0=E5=B9=B6=E9=80=8F=E4=BC=A0?= =?UTF-8?q?page=5Fparams?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将page_params合并到公共参数中,一并追加到跳转链接里 --- common/js/util.js | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/common/js/util.js b/common/js/util.js index eed9cd6..3e12220 100644 --- a/common/js/util.js +++ b/common/js/util.js @@ -1322,13 +1322,18 @@ export default { // 外部链接 if (link.wap_url && link.wap_url.indexOf('http') != -1) { - // 公共参数 - const params = { - title: link?.title ?? '', - enable_set_title: link?.enable_set_title ? 1 : 0 - } + // 公共参数 + 透传 page_params(resolveLinkUrl 已把 wap_url 中的 query 合并到 page_params) + const pageParams = (link.page_params && typeof link.page_params === 'object') ? link.page_params : {}; + const params = Object.assign( + {}, + pageParams, + { + title: link?.title ?? '', + enable_set_title: link?.enable_set_title ? 1 : 0 + } + ); let url = this.normalizeUrl(decodeEntity(link.wap_url)); - url = this.appendQueryParams(url, params); + url = this.appendQueryParams(url, params); // #ifdef H5 // console.log(`url ---->`, url, link)