fix banner and chart color
This commit is contained in:
@@ -29,7 +29,11 @@ export const useSettingsStore = defineStore('settings', () => {
|
||||
if (value == null) {
|
||||
return false
|
||||
}
|
||||
return value === true || String(value).toLowerCase() === 'true'
|
||||
if (value === true) {
|
||||
return true
|
||||
}
|
||||
const normalized = String(value).trim().toLowerCase()
|
||||
return normalized === 'true' || normalized === '1' || normalized === 'yes'
|
||||
}
|
||||
|
||||
function mergeSettings(items?: AppSetting[] | null) {
|
||||
|
||||
Reference in New Issue
Block a user