From fe84248137e85197139d15c1d0a305f784c4cbd4 Mon Sep 17 00:00:00 2001 From: EzraRT Date: Wed, 17 Aug 2022 20:05:50 +0800 Subject: [PATCH 1/3] Add items for builtInBlockParams MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加应清除的queryparam --- registry/lib/components/utils/url-params-clean/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/registry/lib/components/utils/url-params-clean/index.ts b/registry/lib/components/utils/url-params-clean/index.ts index aa34274a5..94e3b778e 100644 --- a/registry/lib/components/utils/url-params-clean/index.ts +++ b/registry/lib/components/utils/url-params-clean/index.ts @@ -47,7 +47,9 @@ const entry = async () => { 'spm', 'hotRank', '-Arouter', - 'vd_source', + 'vd_source', + 'is_story_h5', + 'share_from' ] const [blockParams] = registerAndGetData('urlParamsClean.params', builtInBlockParams) const builtInSiteSpecifiedParams = [ From 91e7d7ec3d1654d133f0dbdffc8def80e05860c1 Mon Sep 17 00:00:00 2001 From: EzraRT Date: Wed, 17 Aug 2022 20:29:29 +0800 Subject: [PATCH 2/3] ESLint fix --- registry/lib/components/utils/url-params-clean/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/registry/lib/components/utils/url-params-clean/index.ts b/registry/lib/components/utils/url-params-clean/index.ts index 94e3b778e..b7ea8284a 100644 --- a/registry/lib/components/utils/url-params-clean/index.ts +++ b/registry/lib/components/utils/url-params-clean/index.ts @@ -47,9 +47,9 @@ const entry = async () => { 'spm', 'hotRank', '-Arouter', - 'vd_source', + 'vd_source', 'is_story_h5', - 'share_from' + 'share_from', ] const [blockParams] = registerAndGetData('urlParamsClean.params', builtInBlockParams) const builtInSiteSpecifiedParams = [ From d8c7af341264b191052a16ff23a8102cf21af5df Mon Sep 17 00:00:00 2001 From: EzraRT Date: Wed, 17 Aug 2022 23:07:18 +0800 Subject: [PATCH 3/3] Del duplicated items --- registry/lib/components/utils/url-params-clean/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/registry/lib/components/utils/url-params-clean/index.ts b/registry/lib/components/utils/url-params-clean/index.ts index aa7b84d4d..1464214f3 100644 --- a/registry/lib/components/utils/url-params-clean/index.ts +++ b/registry/lib/components/utils/url-params-clean/index.ts @@ -50,7 +50,6 @@ const entry = async () => { '-Arouter', 'vd_source', 'is_story_h5', - 'share_from', ] const [blockParams] = registerAndGetData('urlParamsClean.params', builtInBlockParams) const builtInSiteSpecifiedParams = [