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

Function submitFooter

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

Source from the content-addressed store, hash-verified

146 };
147 // 个性化设置 - 页脚
148 const submitFooter = async () => {
149 try {
150 setLoadingInput((loadingInput) => ({ ...loadingInput, Footer: true }));
151 await updateOption('Footer', inputs.Footer);
152 showSuccess('页脚内容已更新');
153 } catch (error) {
154 console.error('页脚内容更新失败', error);
155 showError('页脚内容更新失败');
156 } finally {
157 setLoadingInput((loadingInput) => ({ ...loadingInput, Footer: false }));
158 }
159 };
160
161 const checkUpdate = async () => {
162 try {

Callers

nothing calls this directly

Calls 3

showSuccessFunction · 0.90
showErrorFunction · 0.90
updateOptionFunction · 0.70

Tested by

no test coverage detected