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

Function onRefresh

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

Source from the content-addressed store, hash-verified

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

Callers 1

ModelSetting.jsFile · 0.70

Calls 2

showErrorFunction · 0.90
getOptionsFunction · 0.70

Tested by

no test coverage detected