@jx3box/jx3box-common-ui 9.5.2 → 9.5.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "9.5.2",
3
+ "version": "9.5.4",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/Header.vue CHANGED
@@ -67,8 +67,10 @@ export default {
67
67
  document.documentElement.classList.add("env-app");
68
68
  }
69
69
 
70
+ const urlParams = new URLSearchParams(window.location.search);
71
+ const from = urlParams.get("from");
72
+ from && sessionStorage.setItem("from", from);
70
73
  if (isMiniProgram()) {
71
- const urlParams = new URLSearchParams(window.location.search);
72
74
  const appid = urlParams.get("appid");
73
75
  const item = miniprogram?.find((item) => item.appid === appid);
74
76
  const from = urlParams.get("_from");
@@ -92,6 +94,12 @@ export default {
92
94
  miniprogramHack();
93
95
  }
94
96
  }
97
+
98
+ // 如果来自推栏
99
+ if (sessionStorage.getItem("from") == 'tl') {
100
+ document.documentElement.classList.add("v-miniprogram");
101
+ }
102
+
95
103
  },
96
104
 
97
105
  // 检查
@@ -157,9 +157,10 @@ export default {
157
157
  }
158
158
  .u-bio {
159
159
  .fz(12px, 2);
160
- .break(3);
160
+ .break(4);
161
161
  color: #888;
162
162
  padding: 0 5px;
163
+ white-space: pre-line;
163
164
  }
164
165
  .u-extend {
165
166
  display: flex;