mirror of https://github.com/openspug/spug
fix: cannot continue to add host when auth fail without pkey (closes #315)
parent
fdea7a6e4e
commit
1e4adb8ddf
|
@ -41,6 +41,7 @@ class ComForm extends React.Component {
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res === 'auth fail') {
|
if (res === 'auth fail') {
|
||||||
if (formData.pkey) {
|
if (formData.pkey) {
|
||||||
|
this.setState({loading: false});
|
||||||
message.error('独立密钥认证失败')
|
message.error('独立密钥认证失败')
|
||||||
} else {
|
} else {
|
||||||
this.setState({loading: false});
|
this.setState({loading: false});
|
||||||
|
|
Loading…
Reference in New Issue