@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 +1 -1
- package/src/Header.vue +9 -1
- package/src/author/AuthorInfo.vue +2 -1
package/package.json
CHANGED
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
|
// 检查
|