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)
|
||||
.then(res => {
|
||||
if (res === 'auth fail') {
|
||||
setLoading(false)
|
||||
if (formData.pkey) {
|
||||
message.error('独立密钥认证失败')
|
||||
} else {
|
||||
setLoading(false)
|
||||
Modal.confirm({
|
||||
icon: <ExclamationCircleOutlined/>,
|
||||
title: '首次验证请输入密码',
|
||||
|
|
Loading…
Reference in New Issue