This commit is contained in:
bietiaop committed 2025-02-08 22:43:53 +08:00
1 parent 30b98d608d
commit 174ab591c3
7 files changed
+444 -278

No files matched your search

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