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

Function submitSystemName

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

Source from the content-addressed store, hash-verified

81 const formAPIPersonalization = useRef();
82 // 个性化设置 - SystemName
83 const submitSystemName = async () => {
84 try {
85 setLoadingInput((loadingInput) => ({
86 ...loadingInput,
87 SystemName: true,
88 }));
89 await updateOption('SystemName', inputs.SystemName);
90 showSuccess(t('系统名称已更新'));
91 } catch (error) {
92 console.error(t('系统名称更新失败'), error);
93 showError(t('系统名称更新失败'));
94 } finally {
95 setLoadingInput((loadingInput) => ({
96 ...loadingInput,
97 SystemName: false,
98 }));
99 }
100 };
101
102 // 个性化设置 - Logo
103 const submitLogo = async () => {

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