feat:后台设置页面

This commit is contained in:
Lan
2024-11-23 16:39:42 +08:00
parent bb79c66ced
commit 9693f3d329
15 changed files with 2313 additions and 121 deletions
+6 -2
View File
@@ -662,9 +662,13 @@ const handleSubmit = async () => {
} else {
throw new Error('服务器响应异常')
}
} catch (error) {
} catch (error: any) {
console.error('发送失败:', error)
alertStore.showAlert('发送失败,请稍后重试', 'error')
if (error.response.data.detail) {
alertStore.showAlert(error.response.data.detail, 'error')
} else {
alertStore.showAlert('发送失败,请稍后重试', 'error')
}
} finally {
// 确保无论成功还是失败,最后都重置进度条
uploadProgress.value = 0