application config添加location更新
This commit is contained in:
parent
b4097fbcf1
commit
e6b59eb2a1
|
|
@ -48,8 +48,8 @@ export default function Web(props: {
|
||||||
style={{ marginTop: 10 }}
|
style={{ marginTop: 10 }}
|
||||||
>
|
>
|
||||||
<Form.Item label="appId"
|
<Form.Item label="appId"
|
||||||
//name="appId"
|
//name="appId"
|
||||||
>
|
>
|
||||||
<>
|
<>
|
||||||
<Input
|
<Input
|
||||||
placeholder="请输入appId"
|
placeholder="请输入appId"
|
||||||
|
|
@ -62,8 +62,8 @@ export default function Web(props: {
|
||||||
</>
|
</>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label="appSecret"
|
<Form.Item label="appSecret"
|
||||||
//name="appSecret"
|
//name="appSecret"
|
||||||
>
|
>
|
||||||
<>
|
<>
|
||||||
<Input
|
<Input
|
||||||
placeholder="请输入appSecret"
|
placeholder="请输入appSecret"
|
||||||
|
|
@ -111,6 +111,74 @@ export default function Web(props: {
|
||||||
</Form>
|
</Form>
|
||||||
</Col>
|
</Col>
|
||||||
|
|
||||||
|
<Col flex="auto">
|
||||||
|
<Divider orientation="left" className={Styles.title}>
|
||||||
|
location
|
||||||
|
</Divider>
|
||||||
|
<Form
|
||||||
|
colon={true}
|
||||||
|
labelAlign="left"
|
||||||
|
layout="vertical"
|
||||||
|
style={{ marginTop: 10 }}
|
||||||
|
>
|
||||||
|
<Form.Item label="协议">
|
||||||
|
<>
|
||||||
|
<Select
|
||||||
|
style={{ width: '100%' }}
|
||||||
|
placeholder="请选择协议"
|
||||||
|
value={config?.location?.protocol}
|
||||||
|
onChange={(value: 'http' | 'https') => {
|
||||||
|
setValue(`location.protocol`, value);
|
||||||
|
}}
|
||||||
|
options={
|
||||||
|
[
|
||||||
|
{
|
||||||
|
label: 'http',
|
||||||
|
value: 'http',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'https',
|
||||||
|
value: 'https',
|
||||||
|
},
|
||||||
|
] as Array<{
|
||||||
|
label: string;
|
||||||
|
value: 'http' | 'https';
|
||||||
|
}>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
</Form.Item>
|
||||||
|
<Form.Item
|
||||||
|
label="主机"
|
||||||
|
>
|
||||||
|
<>
|
||||||
|
<Input
|
||||||
|
placeholder="请输入主机"
|
||||||
|
type="text"
|
||||||
|
value={config?.location?.host}
|
||||||
|
onChange={(e) =>
|
||||||
|
setValue(`location.host`, e.target.value)
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
</Form.Item>
|
||||||
|
<Form.Item
|
||||||
|
label="端口"
|
||||||
|
>
|
||||||
|
<>
|
||||||
|
<Input
|
||||||
|
placeholder="请输入端口"
|
||||||
|
type="text"
|
||||||
|
value={config?.location?.port}
|
||||||
|
onChange={(e) =>
|
||||||
|
setValue(`location.port`, e.target.value || '')
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
</Form.Item>
|
||||||
|
</Form>
|
||||||
|
</Col>
|
||||||
|
|
||||||
{/* <Col flex="auto">
|
{/* <Col flex="auto">
|
||||||
<Divider orientation="left" className={Styles.title}>
|
<Divider orientation="left" className={Styles.title}>
|
||||||
网站-授权方式
|
网站-授权方式
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ export default function WechatPublic(props: {
|
||||||
>
|
>
|
||||||
<Form.Item label="appId"
|
<Form.Item label="appId"
|
||||||
//name="appId"
|
//name="appId"
|
||||||
>
|
>
|
||||||
<>
|
<>
|
||||||
<Input
|
<Input
|
||||||
placeholder="请输入appId"
|
placeholder="请输入appId"
|
||||||
|
|
@ -69,7 +69,7 @@ export default function WechatPublic(props: {
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label="appSecret"
|
<Form.Item label="appSecret"
|
||||||
// name="appSecret"
|
// name="appSecret"
|
||||||
>
|
>
|
||||||
<>
|
<>
|
||||||
<Input
|
<Input
|
||||||
placeholder="请输入appSecret"
|
placeholder="请输入appSecret"
|
||||||
|
|
@ -81,7 +81,7 @@ export default function WechatPublic(props: {
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label="原始ID"
|
<Form.Item label="原始ID"
|
||||||
//name="originalId"
|
//name="originalId"
|
||||||
>
|
>
|
||||||
<>
|
<>
|
||||||
|
|
@ -97,8 +97,8 @@ export default function WechatPublic(props: {
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
{isService && (
|
{isService && (
|
||||||
<Form.Item label="是否为服务号"
|
<Form.Item label="是否为服务号"
|
||||||
//name="isService"
|
//name="isService"
|
||||||
>
|
>
|
||||||
<>
|
<>
|
||||||
<Switch
|
<Switch
|
||||||
checkedChildren="是"
|
checkedChildren="是"
|
||||||
|
|
@ -113,6 +113,75 @@ export default function WechatPublic(props: {
|
||||||
)}
|
)}
|
||||||
</Form>
|
</Form>
|
||||||
</Col>
|
</Col>
|
||||||
|
|
||||||
|
<Col flex="auto">
|
||||||
|
<Divider orientation="left" className={Styles.title}>
|
||||||
|
location
|
||||||
|
</Divider>
|
||||||
|
<Form
|
||||||
|
colon={true}
|
||||||
|
labelAlign="left"
|
||||||
|
layout="vertical"
|
||||||
|
style={{ marginTop: 10 }}
|
||||||
|
>
|
||||||
|
<Form.Item label="协议">
|
||||||
|
<>
|
||||||
|
<Select
|
||||||
|
style={{ width: '100%' }}
|
||||||
|
placeholder="请选择协议"
|
||||||
|
value={config?.location?.protocol}
|
||||||
|
onChange={(value: 'http' | 'https') => {
|
||||||
|
setValue(`location.protocol`, value);
|
||||||
|
}}
|
||||||
|
options={
|
||||||
|
[
|
||||||
|
{
|
||||||
|
label: 'http',
|
||||||
|
value: 'http',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'https',
|
||||||
|
value: 'https',
|
||||||
|
},
|
||||||
|
] as Array<{
|
||||||
|
label: string;
|
||||||
|
value: 'http' | 'https';
|
||||||
|
}>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
</Form.Item>
|
||||||
|
<Form.Item
|
||||||
|
label="主机"
|
||||||
|
>
|
||||||
|
<>
|
||||||
|
<Input
|
||||||
|
placeholder="请输入主机"
|
||||||
|
type="text"
|
||||||
|
value={config?.location?.host}
|
||||||
|
onChange={(e) =>
|
||||||
|
setValue(`location.host`, e.target.value)
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
</Form.Item>
|
||||||
|
<Form.Item
|
||||||
|
label="端口"
|
||||||
|
>
|
||||||
|
<>
|
||||||
|
<Input
|
||||||
|
placeholder="请输入端口"
|
||||||
|
type="text"
|
||||||
|
value={config?.location?.port}
|
||||||
|
onChange={(e) =>
|
||||||
|
setValue(`location.port`, e.target.value || '')
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
</Form.Item>
|
||||||
|
</Form>
|
||||||
|
</Col>
|
||||||
|
|
||||||
{/* <Col flex="auto">
|
{/* <Col flex="auto">
|
||||||
<Divider orientation="left" className={Styles.title}>
|
<Divider orientation="left" className={Styles.title}>
|
||||||
网站-授权方式
|
网站-授权方式
|
||||||
|
|
@ -179,8 +248,8 @@ export default function WechatPublic(props: {
|
||||||
layout="vertical"
|
layout="vertical"
|
||||||
style={{ marginTop: 10 }}
|
style={{ marginTop: 10 }}
|
||||||
>
|
>
|
||||||
<Form.Item label="appId"
|
<Form.Item label="appId"
|
||||||
// name="appId"
|
// name="appId"
|
||||||
>
|
>
|
||||||
<>
|
<>
|
||||||
<Input
|
<Input
|
||||||
|
|
@ -227,7 +296,7 @@ export default function WechatPublic(props: {
|
||||||
>
|
>
|
||||||
<Form.Item label="服务器地址(URL)"
|
<Form.Item label="服务器地址(URL)"
|
||||||
// name="url"
|
// name="url"
|
||||||
>
|
>
|
||||||
<>
|
<>
|
||||||
<Input
|
<Input
|
||||||
placeholder="请输入服务器地址(URL),选填"
|
placeholder="请输入服务器地址(URL),选填"
|
||||||
|
|
@ -241,7 +310,7 @@ export default function WechatPublic(props: {
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label="令牌(Token)"
|
<Form.Item label="令牌(Token)"
|
||||||
// name="token"
|
// name="token"
|
||||||
>
|
>
|
||||||
<>
|
<>
|
||||||
<Input
|
<Input
|
||||||
placeholder="请输入令牌(Token)"
|
placeholder="请输入令牌(Token)"
|
||||||
|
|
@ -255,7 +324,7 @@ export default function WechatPublic(props: {
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label="消息加解密密钥(EncodingAESKey)"
|
label="消息加解密密钥(EncodingAESKey)"
|
||||||
// name="encodingAESKey"
|
// name="encodingAESKey"
|
||||||
tooltip="消息加解密密钥将用于消息体加解密过程。具体功能请参见微信文档"
|
tooltip="消息加解密密钥将用于消息体加解密过程。具体功能请参见微信文档"
|
||||||
>
|
>
|
||||||
<>
|
<>
|
||||||
|
|
@ -273,8 +342,8 @@ export default function WechatPublic(props: {
|
||||||
</>
|
</>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label="消息加解密方式"
|
<Form.Item label="消息加解密方式"
|
||||||
//name="mode"
|
//name="mode"
|
||||||
>
|
>
|
||||||
<>
|
<>
|
||||||
<Select
|
<Select
|
||||||
placeholder="请选择消息加解密方式"
|
placeholder="请选择消息加解密方式"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue