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

Function onRefresh

web/src/components/settings/DashboardSetting.js:57–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 };
56
57 async function onRefresh() {
58 try {
59 setLoading(true);
60 await getOptions();
61 } catch (error) {
62 showError('刷新失败');
63 console.error(error);
64 } finally {
65 setLoading(false);
66 }
67 }
68
69 useEffect(() => {
70 onRefresh();

Callers 2

handleMigrateFunction · 0.70

Calls 2

showErrorFunction · 0.90
getOptionsFunction · 0.70

Tested by

no test coverage detected