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

Function onRefresh

web/src/components/settings/DrawingSetting.js:38–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 };
37
38 async function onRefresh() {
39 try {
40 setLoading(true);
41 await getOptions();
42 } catch (error) {
43 showError('刷新失败');
44 } finally {
45 setLoading(false);
46 }
47 }
48
49 useEffect(() => {
50 onRefresh();

Callers 1

DrawingSetting.jsFile · 0.70

Calls 2

showErrorFunction · 0.90
getOptionsFunction · 0.70

Tested by

no test coverage detected