()
| 66 | }; |
| 67 | |
| 68 | async function onRefresh() { |
| 69 | try { |
| 70 | setLoading(true); |
| 71 | await getOptions(); |
| 72 | } catch (error) { |
| 73 | showError(t('刷新失败')); |
| 74 | } finally { |
| 75 | setLoading(false); |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | useEffect(() => { |
| 80 | onRefresh(); |
no test coverage detected