/** * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug * Copyright (c) * Released under the MIT License. */ import React from 'react'; import { observer } from 'mobx-react'; import { Button, Form, Input, message } from 'antd'; import styles from './index.module.css'; import { http } from 'libs'; import store from './store'; import lds from 'lodash'; export default observer(function () { function handleSubmit() { store.loading = true; const value = lds.get(store.settings, 'spug_key.value'); http.post('/api/setting/', {data: [{key: 'spug_key', value}]}) .then(() => { message.success('保存成功'); store.fetchSettings() }) .finally(() => store.loading = false) } return (
报警服务设置
该凭据用于调用spug内置的报警服务,请关注公众号Spug运维在我的页面查看调用凭据。}> lds.set(store.settings, 'spug_key.value', e.target.value)} placeholder="请输入"/>
) })