From 1a24fac661ed766a8eb142a0abb5ad314d7efae0 Mon Sep 17 00:00:00 2001 From: vapao Date: Tue, 6 Jul 2021 17:51:34 +0800 Subject: [PATCH] fix #315 --- spug_web/src/pages/host/Form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spug_web/src/pages/host/Form.js b/spug_web/src/pages/host/Form.js index 4f9fd0d..ea0824a 100644 --- a/spug_web/src/pages/host/Form.js +++ b/spug_web/src/pages/host/Form.js @@ -40,10 +40,10 @@ class ComForm extends React.Component { http.post('/api/host/', formData) .then(res => { if (res === 'auth fail') { + this.setState({loading: false}); if (formData.pkey) { message.error('独立密钥认证失败') } else { - this.setState({loading: false}); Modal.confirm({ icon: 'exclamation-circle', title: '首次验证请输入密码',