fix issue

pull/330/head
vapao 2021-05-20 17:22:38 +08:00
parent 3598e0fca8
commit 41221beb01
1 changed files with 1 additions and 1 deletions

View File

@ -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: '首次验证请输入密码',