mirror of
https://github.com/hi2shark/nazhua.git
synced 2026-01-17 09:40:42 +08:00
🐛 修正boolean值被转为字符串后,识别失败
This commit is contained in:
parent
203b86e0e6
commit
513a88d37e
@ -244,9 +244,11 @@ const localData = {
|
|||||||
refreshData: window.localStorage.getItem('nazhua_monitor_refresh_data'),
|
refreshData: window.localStorage.getItem('nazhua_monitor_refresh_data'),
|
||||||
chartType: window.localStorage.getItem('nazhua_monitor_chart_type'),
|
chartType: window.localStorage.getItem('nazhua_monitor_chart_type'),
|
||||||
};
|
};
|
||||||
|
localData.peakShaving = validate.isSet(localData.peakShaving) ? localData.peakShaving === 'true' : false;
|
||||||
|
localData.refreshData = validate.isSet(localData.refreshData) ? localData.refreshData === 'true' : true;
|
||||||
|
|
||||||
const peakShaving = validate.isSet(localData.peakShaving) ? ref(localData.peakShaving) : ref(false);
|
const peakShaving = ref(localData.peakShaving);
|
||||||
const refreshData = validate.isSet(localData.refreshData) ? ref(localData.refreshData) : ref(true);
|
const refreshData = ref(localData.refreshData);
|
||||||
const showCates = ref({});
|
const showCates = ref({});
|
||||||
const monitorData = ref([]);
|
const monitorData = ref([]);
|
||||||
const longPressTimer = ref(null);
|
const longPressTimer = ref(null);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user