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

Function onRefresh

web/src/components/settings/PaymentSetting.js:68–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

PaymentSetting.jsFile · 0.70

Calls 3

showErrorFunction · 0.90
getOptionsFunction · 0.70
tFunction · 0.70

Tested by

no test coverage detected