@jx3box/jx3box-common-ui 9.5.21 → 9.5.22

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/Header.vue +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "9.5.21",
3
+ "version": "9.5.22",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -24,9 +24,9 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@jx3box/jx3box-comment-ui": "^2.0.9",
27
- "@jx3box/jx3box-common": "^8.7.4",
27
+ "@jx3box/jx3box-common": "^8.7.5",
28
28
  "@jx3box/jx3box-data": "^3.9.2",
29
- "@jx3box/jx3box-editor": "^2.2.43",
29
+ "@jx3box/jx3box-editor": "^2.2.47",
30
30
  "@jx3box/reporter": "^0.0.4",
31
31
  "axios": "^0.26.1",
32
32
  "dayjs": "^1.11.0",
package/src/Header.vue CHANGED
@@ -35,7 +35,7 @@ import search from "./header/search.vue";
35
35
  import nav from "./header/nav.vue";
36
36
  import user from "./header/user.vue";
37
37
  import Box from "../src/Box.vue";
38
- import { isMiniProgram, miniprogramHack } from "@jx3box/jx3box-common/js/utils";
38
+ import { isMiniProgram, miniprogramHack, isApp } from "@jx3box/jx3box-common/js/utils";
39
39
  import miniprogram from "@jx3box/jx3box-common/data/miniprogram.json";
40
40
  import { getGlobalConfig } from "../service/header.js";
41
41
  import User from "@jx3box/jx3box-common/js/user.js";
@@ -70,7 +70,7 @@ export default {
70
70
  const urlParams = new URLSearchParams(window.location.search);
71
71
  const from = urlParams.get("from");
72
72
  from && sessionStorage.setItem("from", from);
73
- if (isMiniProgram()) {
73
+ if (isMiniProgram() || isApp()) {
74
74
  const appid = urlParams.get("appid");
75
75
  const item = miniprogram?.find((item) => item.appid === appid);
76
76
  const from = urlParams.get("_from");