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

Function onRefresh

web/src/components/settings/OperationSetting.js:69–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67 }
68 };
69 async function onRefresh() {
70 try {
71 setLoading(true);
72 await getOptions();
73 // showSuccess('刷新成功');
74 } catch (error) {
75 showError('刷新失败');
76 } finally {
77 setLoading(false);
78 }
79 }
80
81 useEffect(() => {
82 onRefresh();

Callers 1

Calls 2

showErrorFunction · 0.90
getOptionsFunction · 0.70

Tested by

no test coverage detected