修复 bug
This commit is contained in:
@@ -145,6 +145,7 @@ export interface PeqState {
|
||||
canDel?: number;
|
||||
brand?: string;
|
||||
model?: string;
|
||||
form?: string;
|
||||
}>;
|
||||
}
|
||||
|
||||
@@ -262,11 +263,7 @@ export class LuxsinAPI {
|
||||
const response = await fetch(`${this.baseUrl}/dev/info.cgi?action=syncPeq`);
|
||||
const text = await response.text();
|
||||
const decoded = decodeCustomBase64(text.trim());
|
||||
const parsed = JSON.parse(decoded) as PeqState;
|
||||
if (import.meta.env.DEV) {
|
||||
console.log("[syncPeq] decoded", parsed);
|
||||
}
|
||||
return parsed;
|
||||
return JSON.parse(decoded) as PeqState;
|
||||
}
|
||||
|
||||
async setPeqFilters(filters: PeqFilter[]): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user