@we-debug/miniprogram 0.29.1 → 0.29.3

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/CHANGELOG.md CHANGED
@@ -3,6 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.29.3](https://github.com/dlhandsome/we-debug/compare/v0.29.2...v0.29.3) (2023-12-22)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **runtime:** 修复默认rule 展示逻辑 ([08dcdc0](https://github.com/dlhandsome/we-debug/commit/08dcdc0091e941534af7364e7c980a7994e5a577))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.29.2](https://github.com/dlhandsome/we-debug/compare/v0.29.1...v0.29.2) (2023-12-22)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **runtime/miniprogram:** 修复分组缓存逻辑 ([9f44004](https://github.com/dlhandsome/we-debug/commit/9f440045362f2b9fc99cbf47b7ddc90967ddc21d))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [0.29.1](https://github.com/dlhandsome/we-debug/compare/v0.29.0...v0.29.1) (2023-12-22)
7
29
 
8
30
 
@@ -3,6 +3,7 @@ import Debug from '@we-debug/core';
3
3
  const store = Debug.store;
4
4
  const sys = store.sys.get();
5
5
  const currentGroupCache = Debug.createCache('__wedebug_miniprogram_group_actived_key__', '');
6
+ const DEFAULT_GROUP = Debug.DEFAULT_GROUP;
6
7
 
7
8
  Component({
8
9
  options: {
@@ -50,7 +51,7 @@ Component({
50
51
  searchStr: '',
51
52
  group: {
52
53
  keys: store.group.getKeys(),
53
- actived: currentGroupCache.get() || '全部'
54
+ actived: currentGroupCache.get() || DEFAULT_GROUP
54
55
  }
55
56
  },
56
57
  methods: {
@@ -58,7 +59,7 @@ Component({
58
59
  this.setData({ sys: store.sys.get() });
59
60
  },
60
61
  setRules() {
61
- this.setData({ rules: store.rules.get() });
62
+ this.setData({ rules: store.group.get(currentGroupCache.get() || DEFAULT_GROUP).get() });
62
63
  },
63
64
  setBadges() {
64
65
  this.setData({ badges: store.badges.get() });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@we-debug/miniprogram",
3
- "version": "0.29.1",
3
+ "version": "0.29.3",
4
4
  "description": "we-debug miniprogram component",
5
5
  "author": {
6
6
  "name": "dlhandsome"
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "license": "MIT",
27
27
  "dependencies": {
28
- "@we-debug/core": "0.29.0",
28
+ "@we-debug/core": "0.29.3",
29
29
  "@we-debug/plugin-error": "0.29.0",
30
30
  "@we-debug/plugin-launcher": "0.29.0",
31
31
  "@we-debug/plugin-network": "0.29.0",
@@ -36,5 +36,5 @@
36
36
  "readme": "ERROR: No README data found!",
37
37
  "_id": "@we-debug/core@0.3.5",
38
38
  "_commitid": "6c3f04b",
39
- "gitHead": "03e9ad53ca12f7d42bd658e0b1c8ddc40d6f84be"
39
+ "gitHead": "c5aa37d44f8660d5394609dd26a829097aa1f08f"
40
40
  }