diff --git a/spug_web/src/pages/host/Form.js b/spug_web/src/pages/host/Form.js index f3b0e6e..36b77fc 100644 --- a/spug_web/src/pages/host/Form.js +++ b/spug_web/src/pages/host/Form.js @@ -32,10 +32,10 @@ export default observer(function () { http.post('/api/host/', formData) .then(res => { if (res === 'auth fail') { + setLoading(false) if (formData.pkey) { message.error('独立密钥认证失败') } else { - setLoading(false) Modal.confirm({ icon: , title: '首次验证请输入密码',