From 1e4adb8ddf1df07b471544d7dad8104c4a3bf643 Mon Sep 17 00:00:00 2001 From: Zero Date: Tue, 18 May 2021 09:24:37 +0800 Subject: [PATCH] fix: cannot continue to add host when auth fail without pkey (closes #315) --- spug_web/src/pages/host/Form.js | 1 + 1 file changed, 1 insertion(+) diff --git a/spug_web/src/pages/host/Form.js b/spug_web/src/pages/host/Form.js index 4f9fd0d..91a75d5 100644 --- a/spug_web/src/pages/host/Form.js +++ b/spug_web/src/pages/host/Form.js @@ -41,6 +41,7 @@ class ComForm extends React.Component { .then(res => { if (res === 'auth fail') { if (formData.pkey) { + this.setState({loading: false}); message.error('独立密钥认证失败') } else { this.setState({loading: false});