()
| 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 () => { |
nothing calls this directly
no test coverage detected