mirror of https://github.com/openspug/spug
fix issue
parent
3598e0fca8
commit
41221beb01
|
@ -32,10 +32,10 @@ export default observer(function () {
|
||||||
http.post('/api/host/', formData)
|
http.post('/api/host/', formData)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res === 'auth fail') {
|
if (res === 'auth fail') {
|
||||||
|
setLoading(false)
|
||||||
if (formData.pkey) {
|
if (formData.pkey) {
|
||||||
message.error('独立密钥认证失败')
|
message.error('独立密钥认证失败')
|
||||||
} else {
|
} else {
|
||||||
setLoading(false)
|
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
icon: <ExclamationCircleOutlined/>,
|
icon: <ExclamationCircleOutlined/>,
|
||||||
title: '首次验证请输入密码',
|
title: '首次验证请输入密码',
|
||||||
|
|
Loading…
Reference in New Issue