@@ -1,6 +1,6 @@
export function getTheme() {
// ("zen" | "hack" | "concrete" | "")
- return localStorage.isDark ? 'hack' : ''
+ return localStorage.isDark === '1' ? 'hack' : ''
}
export function getLineData({ xAxis = [] as any[], datas = [] as number[][], legend = [] as string[], suffix = '', width = 1000, height = 400, responsive = false, zoom = false, modulo = 10, padding = 30, useArea = true }) {