fix: cannot continue to add host when auth fail without pkey (closes #315)

pull/316/head
Zero 2021-05-18 09:24:37 +08:00
parent fdea7a6e4e
commit 1e4adb8ddf
1 changed files with 1 additions and 0 deletions

View File

@ -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});