()
| 146 | }; |
| 147 | // 个性化设置 - 页脚 |
| 148 | const submitFooter = async () => { |
| 149 | try { |
| 150 | setLoadingInput((loadingInput) => ({ ...loadingInput, Footer: true })); |
| 151 | await updateOption('Footer', inputs.Footer); |
| 152 | showSuccess('页脚内容已更新'); |
| 153 | } catch (error) { |
| 154 | console.error('页脚内容更新失败', error); |
| 155 | showError('页脚内容更新失败'); |
| 156 | } finally { |
| 157 | setLoadingInput((loadingInput) => ({ ...loadingInput, Footer: false })); |
| 158 | } |
| 159 | }; |
| 160 | |
| 161 | const checkUpdate = async () => { |
| 162 | try { |
nothing calls this directly
no test coverage detected