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

Function submitAbout

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

Source from the content-addressed store, hash-verified

133 };
134 // 个性化设置 - 关于
135 const submitAbout = async () => {
136 try {
137 setLoadingInput((loadingInput) => ({ ...loadingInput, About: true }));
138 await updateOption('About', inputs.About);
139 showSuccess('关于内容已更新');
140 } catch (error) {
141 console.error('关于内容更新失败', error);
142 showError('关于内容更新失败');
143 } finally {
144 setLoadingInput((loadingInput) => ({ ...loadingInput, About: false }));
145 }
146 };
147 // 个性化设置 - 页脚
148 const submitFooter = async () => {
149 try {

Callers

nothing calls this directly

Calls 3

showSuccessFunction · 0.90
showErrorFunction · 0.90
updateOptionFunction · 0.70

Tested by

no test coverage detected