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