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

Function submitLogo

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

Source from the content-addressed store, hash-verified

101
102 // 个性化设置 - Logo
103 const submitLogo = async () => {
104 try {
105 setLoadingInput((loadingInput) => ({ ...loadingInput, Logo: true }));
106 await updateOption('Logo', inputs.Logo);
107 showSuccess('Logo 已更新');
108 } catch (error) {
109 console.error('Logo 更新失败', error);
110 showError('Logo 更新失败');
111 } finally {
112 setLoadingInput((loadingInput) => ({ ...loadingInput, Logo: false }));
113 }
114 };
115 // 个性化设置 - 首页内容
116 const submitOption = async (key) => {
117 try {

Callers

nothing calls this directly

Calls 3

showSuccessFunction · 0.90
showErrorFunction · 0.90
updateOptionFunction · 0.70

Tested by

no test coverage detected