fix
This commit is contained in:
1 parent
f8c396b1fe
commit
2e013ed4f5
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 (
|
||||
|
||||
Reference in new issue
Block a user