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

Function onRefresh

web/src/components/settings/RatioSetting.js:65–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63 };
64
65 const onRefresh = async () => {
66 try {
67 setLoading(true);
68 await getOptions();
69 } catch (error) {
70 showError('刷新失败');
71 } finally {
72 setLoading(false);
73 }
74 };
75
76 useEffect(() => {
77 onRefresh();

Callers 1

RatioSetting.jsFile · 0.70

Calls 2

showErrorFunction · 0.90
getOptionsFunction · 0.70

Tested by

no test coverage detected