From 9998ae47ad92f1902daa3f48c8d3d18e03973f39 Mon Sep 17 00:00:00 2001 From: vapao Date: Tue, 28 Sep 2021 18:28:22 +0800 Subject: [PATCH] improve ux --- spug_web/src/pages/host/Form.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/spug_web/src/pages/host/Form.js b/spug_web/src/pages/host/Form.js index 7a75ee7..b4b5460 100644 --- a/spug_web/src/pages/host/Form.js +++ b/spug_web/src/pages/host/Form.js @@ -45,10 +45,9 @@ export default observer(function () { }) } } else { - message.success('操作成功'); + message.success('验证成功'); store.formVisible = false; store.fetchRecords(); - if (!store.record.id) handleNext(res) } }, () => setLoading(false)) } @@ -59,23 +58,11 @@ export default observer(function () { message.success('验证成功'); store.formVisible = false; store.fetchRecords(); - if (!store.record.id) handleNext(res) }) } message.error('请输入授权密码') } - function handleNext(res) { - Modal.confirm({ - title: '提示信息', - content: '是否继续完善主机的扩展信息?', - onOk: () => { - store.record = res; - store.detailVisible = true - } - }) - } - const ConfirmForm = (props) => (