mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-03-01 08:10:25 +00:00
fix
This commit is contained in:
@@ -47,11 +47,11 @@ const LoginConfigCard = () => {
|
||||
}
|
||||
})
|
||||
|
||||
const onRefresh = async (shotTip = true) => {
|
||||
const onRefresh = async () => {
|
||||
try {
|
||||
setLoading(true)
|
||||
await refreshQuickLogin()
|
||||
if (shotTip) toast.success('刷新成功')
|
||||
toast.success('刷新成功')
|
||||
} catch (error) {
|
||||
const msg = (error as Error).message
|
||||
toast.error(`刷新失败: ${msg}`)
|
||||
@@ -64,10 +64,6 @@ const LoginConfigCard = () => {
|
||||
reset()
|
||||
}, [quickLoginData])
|
||||
|
||||
useEffect(() => {
|
||||
onRefresh(false)
|
||||
}, [])
|
||||
|
||||
if (loading) return <PageLoading loading={true} />
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user