From e6b59eb2a1d1ade4d26c9ef55982cb8f7e6a372c Mon Sep 17 00:00:00 2001 From: lxy Date: Wed, 4 Sep 2024 11:37:02 +0800 Subject: [PATCH] =?UTF-8?q?application=20config=E6=B7=BB=E5=8A=A0location?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../config/application/web/index.tsx | 76 ++++++++++++++- .../config/application/wechatPublic/index.tsx | 93 ++++++++++++++++--- 2 files changed, 153 insertions(+), 16 deletions(-) diff --git a/src/components/config/application/web/index.tsx b/src/components/config/application/web/index.tsx index 6990df752..027ef31fd 100644 --- a/src/components/config/application/web/index.tsx +++ b/src/components/config/application/web/index.tsx @@ -48,8 +48,8 @@ export default function Web(props: { style={{ marginTop: 10 }} > + //name="appId" + > <> + //name="appSecret" + > <> + + + location + +
+ + <> + + setValue(`location.host`, e.target.value) + } + /> + + + + <> + + setValue(`location.port`, e.target.value || '') + } + /> + + +
+ + {/* 网站-授权方式 diff --git a/src/components/config/application/wechatPublic/index.tsx b/src/components/config/application/wechatPublic/index.tsx index 1263a4a9e..cc44ee447 100644 --- a/src/components/config/application/wechatPublic/index.tsx +++ b/src/components/config/application/wechatPublic/index.tsx @@ -55,7 +55,7 @@ export default function WechatPublic(props: { > + > <> + > <> - <> @@ -97,8 +97,8 @@ export default function WechatPublic(props: { {isService && ( + //name="isService" + > <> + + + + location + +
+ + <> + + setValue(`location.host`, e.target.value) + } + /> + + + + <> + + setValue(`location.port`, e.target.value || '') + } + /> + + +
+ + {/* 网站-授权方式 @@ -179,8 +248,8 @@ export default function WechatPublic(props: { layout="vertical" style={{ marginTop: 10 }} > - <> + > <> + > <> <> @@ -273,8 +342,8 @@ export default function WechatPublic(props: { + //name="mode" + > <>