mirror of https://github.com/openspug/spug
U 完善开放服务设置说明
parent
662a6f0892
commit
ca754e9933
|
@ -4,8 +4,8 @@
|
||||||
* Released under the MIT License.
|
* Released under the MIT License.
|
||||||
*/
|
*/
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import {observer} from 'mobx-react';
|
import { observer } from 'mobx-react';
|
||||||
import {Button, Form, Input, message} from 'antd';
|
import { Button, Form, Input, message } from 'antd';
|
||||||
import styles from './index.module.css';
|
import styles from './index.module.css';
|
||||||
import http from 'libs/http';
|
import http from 'libs/http';
|
||||||
import store from './store';
|
import store from './store';
|
||||||
|
@ -28,13 +28,15 @@ export default observer(function () {
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<div className={styles.title}>开放服务设置</div>
|
<div className={styles.title}>开放服务设置</div>
|
||||||
<Form style={{maxWidth: 320}}>
|
<Form style={{maxWidth: 320}}>
|
||||||
<Form.Item colon={false} label="访问凭据">
|
<Form.Item colon={false} label="访问凭据" help="该自定义凭据用于访问平台的开放服务,例如:配置中心的配置获取API等,其他开放服务请查询官方文档。">
|
||||||
<Input
|
<Input
|
||||||
value={lds.get(store.settings, 'api_key.value')}
|
value={lds.get(store.settings, 'api_key.value')}
|
||||||
onChange={e => lds.set(store.settings, 'api_key.value', e.target.value)}
|
onChange={e => lds.set(store.settings, 'api_key.value', e.target.value)}
|
||||||
placeholder="请输入"/>
|
placeholder="请输入"/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Button type="primary" loading={store.loading} onClick={handleSubmit}>保存设置</Button>
|
<Form.Item>
|
||||||
|
<Button type="primary" loading={store.loading} onClick={handleSubmit}>保存设置</Button>
|
||||||
|
</Form.Item>
|
||||||
</Form>
|
</Form>
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue