MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / onRefresh

Function onRefresh

web/src/components/settings/RateLimitSetting.js:42–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40 }
41 };
42 async function onRefresh() {
43 try {
44 setLoading(true);
45 await getOptions();
46 // showSuccess('刷新成功');
47 } catch (error) {
48 showError('刷新失败');
49 } finally {
50 setLoading(false);
51 }
52 }
53
54 useEffect(() => {
55 onRefresh();

Callers 1

Calls 2

showErrorFunction · 0.90
getOptionsFunction · 0.70

Tested by

no test coverage detected