pull/343/head
vapao 2021-07-06 17:51:34 +08:00
parent 9cc939222d
commit 1a24fac661
1 changed files with 1 additions and 1 deletions

View File

@ -40,10 +40,10 @@ class ComForm extends React.Component {
http.post('/api/host/', formData) http.post('/api/host/', formData)
.then(res => { .then(res => {
if (res === 'auth fail') { if (res === 'auth fail') {
this.setState({loading: false});
if (formData.pkey) { if (formData.pkey) {
message.error('独立密钥认证失败') message.error('独立密钥认证失败')
} else { } else {
this.setState({loading: false});
Modal.confirm({ Modal.confirm({
icon: 'exclamation-circle', icon: 'exclamation-circle',
title: '首次验证请输入密码', title: '首次验证请输入密码',