Add Luxsin curve API client and validation functionality

- Introduced a new module `curve_client.py` for interacting with the Luxsin curve API, including functions for custom Base64 decoding and parametric EQ validation.
- Implemented error handling for API responses and validation checks for curve data.
- Removed outdated test files to streamline the codebase.
- Updated brand creation and update logic in `brands.py` to ensure brand names are validated and checked for duplicates.
- Enhanced model handling in `models.py` with new validation and push-to-search functionality, integrating curve validation before pushing to Meilisearch.
- Updated frontend components to support new validation and push processes, including user feedback for validation results and progress tracking.
- Changed favicon to SVG format for better scalability and appearance.
This commit is contained in:
yangy
2026-05-20 14:13:42 +08:00
parent 1564c8766d
commit fb1aad45af
12 changed files with 653 additions and 256 deletions
+7 -3
View File
@@ -29,10 +29,14 @@ request.interceptors.response.use(
response => {
const res = response.data
// 如果响应码为 0,表示错误
// 如果响应码为 0,表示错误(可由调用方自行提示,如推送进度弹窗)
if (res.code === 0) {
ElMessage.error(res.msg || '请求失败')
return Promise.reject(new Error(res.msg || '请求失败'))
if (!response.config.skipErrorToast) {
ElMessage.error(res.msg || '请求失败')
}
const err = new Error(res.msg || '请求失败')
err.responseData = res
return Promise.reject(err)
}
return res