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