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

Function submitNotice

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

Source from the content-addressed store, hash-verified

66 const formAPISettingGeneral = useRef();
67 // 通用设置 - Notice
68 const submitNotice = async () => {
69 try {
70 setLoadingInput((loadingInput) => ({ ...loadingInput, Notice: true }));
71 await updateOption('Notice', inputs.Notice);
72 showSuccess(t('公告已更新'));
73 } catch (error) {
74 console.error(t('公告更新失败'), error);
75 showError(t('公告更新失败'));
76 } finally {
77 setLoadingInput((loadingInput) => ({ ...loadingInput, Notice: false }));
78 }
79 };
80 // 个性化设置
81 const formAPIPersonalization = useRef();
82 // 个性化设置 - SystemName

Callers

nothing calls this directly

Calls 4

showSuccessFunction · 0.90
showErrorFunction · 0.90
updateOptionFunction · 0.70
tFunction · 0.70

Tested by

no test coverage detected