网站配置增加api访问地址配置

This commit is contained in:
禺狨 2023-06-13 11:01:15 +08:00
parent 8171b16bc6
commit e29744ea88

View File

@ -52,6 +52,10 @@ const SystemConfigPage = () => {
form.setFieldsValue({
"system.api_url": configData[i].key_value,
});
} else if (configData[i].key_name === "system.api_url") {
form.setFieldsValue({
"system.api_url": configData[i].key_value,
});
} else if (configData[i].key_name === "system.pc_url") {
form.setFieldsValue({
"system.pc_url": configData[i].key_value,
@ -275,6 +279,13 @@ const SystemConfigPage = () => {
</div>
</Form.Item>
)}
<Form.Item
style={{ marginBottom: 30 }}
label="API访问地址"
name="system.api_url"
>
<Input style={{ width: 274 }} placeholder="请填写API访问地址" />
</Form.Item>
<Form.Item
style={{ marginBottom: 30 }}
label="网站标题"
@ -297,13 +308,7 @@ const SystemConfigPage = () => {
placeholder="请填写网站页脚"
/>
</Form.Item>
{/* <Form.Item
style={{ marginBottom: 30 }}
label="API访问地址"
name="system.api_url"
>
<Input style={{ width: 274 }} placeholder="请填写API访问地址" />
</Form.Item>
{/*
<Form.Item
style={{ marginBottom: 30 }}
label="PC端访问地址"