@blueking/monitor-trace-log 2.0.14 → 2.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.js +16 -8
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -70749,7 +70749,11 @@ class RetrieveHelper extends base {
|
|
|
70749
70749
|
let memoryObj = {};
|
|
70750
70750
|
const storageStr = localStorage.getItem('MONITOR_LOG_RECENT_INDEX_SET_ID');
|
|
70751
70751
|
if (storageStr) {
|
|
70752
|
-
|
|
70752
|
+
// 兼容旧的代码,后期可以去除
|
|
70753
|
+
const parseValue = JSON.parse(storageStr);
|
|
70754
|
+
if (!Array.isArray(parseValue)) {
|
|
70755
|
+
memoryObj = parseValue;
|
|
70756
|
+
}
|
|
70753
70757
|
}
|
|
70754
70758
|
Object.assign(memoryObj, {
|
|
70755
70759
|
[bizAppKey]: idList
|
|
@@ -232709,13 +232713,17 @@ var sub_bar_component = normalizeComponent(
|
|
|
232709
232713
|
const memoryStr = localStorage.getItem('MONITOR_LOG_RECENT_INDEX_SET_ID');
|
|
232710
232714
|
let defaultId = '';
|
|
232711
232715
|
if (memoryStr) {
|
|
232712
|
-
const
|
|
232713
|
-
|
|
232714
|
-
if (
|
|
232715
|
-
const
|
|
232716
|
-
const
|
|
232717
|
-
if (
|
|
232718
|
-
|
|
232716
|
+
const parseValue = JSON.parse(memoryStr);
|
|
232717
|
+
// 兼容旧的代码,后期可以去除
|
|
232718
|
+
if (!Array.isArray(parseValue)) {
|
|
232719
|
+
const memoryObj = parseValue;
|
|
232720
|
+
const memoryIds = memoryObj[bizAppKey];
|
|
232721
|
+
if (memoryIds) {
|
|
232722
|
+
const memoryId = memoryIds[0];
|
|
232723
|
+
const defaultValidItem = resp.find(item => item.index_set_id === memoryId && item.tags.every(tag => tag.tag_id !== 4));
|
|
232724
|
+
if (defaultValidItem) {
|
|
232725
|
+
defaultId = memoryId;
|
|
232726
|
+
}
|
|
232719
232727
|
}
|
|
232720
232728
|
}
|
|
232721
232729
|
}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@blueking/monitor-trace-log","version":"2.0.
|
|
1
|
+
{"name":"@blueking/monitor-trace-log","version":"2.0.15","description":"","main":"main.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"MIT"}
|