mirror of https://github.com/openspug/spug
U clean
parent
9d6b46fcb2
commit
51efc9591e
|
@ -29,7 +29,6 @@ export default observer(function () {
|
|||
|
||||
function handleTest(mode, name) {
|
||||
const value = form.getFieldValue(name)
|
||||
console.log(name, value)
|
||||
if (!value) return message.error('请输入后再执行测试')
|
||||
setTestLoading(mode)
|
||||
http.post('/api/alarm/test/', {mode, value})
|
||||
|
|
|
@ -13,7 +13,6 @@ export default function Parameter(props) {
|
|||
|
||||
function handleSubmit() {
|
||||
const formData = form.getFieldsValue();
|
||||
console.log(formData)
|
||||
formData.id = props.parameter.id
|
||||
if (!formData.name) return message.error('请输入参数名')
|
||||
if (!formData.variable) return message.error('请输入变量名')
|
||||
|
|
|
@ -64,7 +64,6 @@ function NavForm(props) {
|
|||
<Modal
|
||||
visible
|
||||
title={`${record.id ? '编辑' : '新建'}链接`}
|
||||
afterClose={() => console.log('after close')}
|
||||
onCancel={props.onCancel}
|
||||
confirmLoading={loading}
|
||||
onOk={handleSubmit}>
|
||||
|
|
|
@ -68,7 +68,6 @@ export default observer(function () {
|
|||
}
|
||||
|
||||
function handleChange(e, key) {
|
||||
console.log(e)
|
||||
host[key] = e && e.target ? e.target.value : e;
|
||||
if (['created_time', 'expired_time'].includes(key) && e) {
|
||||
host[key] = e.format('YYYY-MM-DD')
|
||||
|
|
Loading…
Reference in New Issue