@jx3box/jx3box-common-ui 8.9.28 → 8.9.29
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 +3 -3
- package/src/App.vue +3 -1
- package/src/Header.vue +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jx3box/jx3box-common-ui",
|
|
3
|
-
"version": "8.9.
|
|
3
|
+
"version": "8.9.29",
|
|
4
4
|
"description": "JX3BOX UI",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@jx3box/jx3box-comment-ui": "^1.9.9",
|
|
34
|
-
"@jx3box/jx3box-common": "^8.
|
|
35
|
-
"@jx3box/jx3box-data": "^3.6.
|
|
34
|
+
"@jx3box/jx3box-common": "^8.4.1",
|
|
35
|
+
"@jx3box/jx3box-data": "^3.6.9",
|
|
36
36
|
"@jx3box/jx3box-editor": "^2.2.15",
|
|
37
37
|
"@jx3box/reporter": "^0.0.4",
|
|
38
38
|
"axios": "^0.26.1",
|
package/src/App.vue
CHANGED
|
@@ -204,6 +204,8 @@ import post_topics from "@jx3box/jx3box-common/data/post_topics.json";
|
|
|
204
204
|
import Homework from './interact/Homework.vue';
|
|
205
205
|
import { getTopicDetails } from "../service/community"
|
|
206
206
|
|
|
207
|
+
import { isMiniProgram, miniprogramHack } from "@jx3box/jx3box-common/js/utils";
|
|
208
|
+
|
|
207
209
|
export default {
|
|
208
210
|
name: "App",
|
|
209
211
|
components: {
|
|
@@ -266,7 +268,7 @@ export default {
|
|
|
266
268
|
tab: "widget",
|
|
267
269
|
|
|
268
270
|
post: {},
|
|
269
|
-
post_id: "
|
|
271
|
+
post_id: "79820",
|
|
270
272
|
|
|
271
273
|
author: "",
|
|
272
274
|
wikiPost: null,
|
package/src/Header.vue
CHANGED
|
@@ -41,7 +41,7 @@ import search from "./header/search.vue";
|
|
|
41
41
|
import nav from "./header/nav.vue";
|
|
42
42
|
import user from "./header/user.vue";
|
|
43
43
|
import Box from "../src/Box.vue";
|
|
44
|
-
import { isMiniProgram } from "@jx3box/jx3box-common/js/utils";
|
|
44
|
+
import { isMiniProgram, miniprogramHack } from "@jx3box/jx3box-common/js/utils";
|
|
45
45
|
// import gameSwitch from "./header/gameSwitch.vue";
|
|
46
46
|
|
|
47
47
|
export default {
|
|
@@ -67,6 +67,9 @@ export default {
|
|
|
67
67
|
|
|
68
68
|
if (isMiniProgram()) {
|
|
69
69
|
document.documentElement.classList.add("wechat-miniprogram");
|
|
70
|
+
|
|
71
|
+
// 微信小程序hack
|
|
72
|
+
miniprogramHack();
|
|
70
73
|
}
|
|
71
74
|
},
|
|
72
75
|
|