This commit is contained in:
bietiaop
2025-02-08 22:43:53 +08:00
parent f8c396b1fe
commit 2e013ed4f5
7 changed files with 444 additions and 278 deletions

View File

@@ -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 (