mirror of https://github.com/openspug/spug
fix #315
parent
9cc939222d
commit
1a24fac661
|
@ -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: '首次验证请输入密码',
|
||||||
|
|
Loading…
Reference in New Issue