mirror of https://github.com/openspug/spug
parent
405f4775e6
commit
9998ae47ad
|
@ -45,10 +45,9 @@ export default observer(function () {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
message.success('操作成功');
|
message.success('验证成功');
|
||||||
store.formVisible = false;
|
store.formVisible = false;
|
||||||
store.fetchRecords();
|
store.fetchRecords();
|
||||||
if (!store.record.id) handleNext(res)
|
|
||||||
}
|
}
|
||||||
}, () => setLoading(false))
|
}, () => setLoading(false))
|
||||||
}
|
}
|
||||||
|
@ -59,23 +58,11 @@ export default observer(function () {
|
||||||
message.success('验证成功');
|
message.success('验证成功');
|
||||||
store.formVisible = false;
|
store.formVisible = false;
|
||||||
store.fetchRecords();
|
store.fetchRecords();
|
||||||
if (!store.record.id) handleNext(res)
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
message.error('请输入授权密码')
|
message.error('请输入授权密码')
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleNext(res) {
|
|
||||||
Modal.confirm({
|
|
||||||
title: '提示信息',
|
|
||||||
content: '是否继续完善主机的扩展信息?',
|
|
||||||
onOk: () => {
|
|
||||||
store.record = res;
|
|
||||||
store.detailVisible = true
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
const ConfirmForm = (props) => (
|
const ConfirmForm = (props) => (
|
||||||
<Form layout="vertical" style={{marginTop: 24}}>
|
<Form layout="vertical" style={{marginTop: 24}}>
|
||||||
<Form.Item required label="授权密码" help={`用户 ${props.username} 的密码, 该密码仅做首次验证使用,不会存储该密码。`}>
|
<Form.Item required label="授权密码" help={`用户 ${props.username} 的密码, 该密码仅做首次验证使用,不会存储该密码。`}>
|
||||||
|
|
Loading…
Reference in New Issue