@jx3box/jx3box-common-ui 7.5.6 → 7.5.7
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/assets/js/utils.js +5 -0
- package/package.json +3 -3
- package/src/Box.vue +3 -1
- package/src/header/nav.vue +8 -6
package/assets/js/utils.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jx3box/jx3box-common-ui",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.7",
|
|
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.7.16",
|
|
34
|
-
"@jx3box/jx3box-common": "^7.9.
|
|
35
|
-
"@jx3box/jx3box-data": "^3.4.
|
|
34
|
+
"@jx3box/jx3box-common": "^7.9.15",
|
|
35
|
+
"@jx3box/jx3box-data": "^3.4.2",
|
|
36
36
|
"@jx3box/jx3box-editor": "^1.9.9",
|
|
37
37
|
"@jx3box/reporter": "^0.0.4",
|
|
38
38
|
"axios": "^0.26.1",
|
package/src/Box.vue
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
:target="getTarget(item.href)"
|
|
29
29
|
v-reporter="{
|
|
30
30
|
data: {
|
|
31
|
-
item: item.href,
|
|
31
|
+
item: trimSlash(item.href),
|
|
32
32
|
},
|
|
33
33
|
caller: 'index_nav_matrix',
|
|
34
34
|
}"
|
|
@@ -53,6 +53,7 @@ import Bus from "../service/bus";
|
|
|
53
53
|
import { __imgPath } from "@jx3box/jx3box-common/data/jx3box.json";
|
|
54
54
|
import box from "../assets/data/box.json";
|
|
55
55
|
import { getMenu } from "../service/header.js";
|
|
56
|
+
import { trimSlash } from "../assets/js/utils";
|
|
56
57
|
export default {
|
|
57
58
|
name: "Box",
|
|
58
59
|
props: ["overlayEnable"],
|
|
@@ -113,6 +114,7 @@ export default {
|
|
|
113
114
|
console.log("loadBox error", e);
|
|
114
115
|
}
|
|
115
116
|
},
|
|
117
|
+
trimSlash,
|
|
116
118
|
},
|
|
117
119
|
created: function () {
|
|
118
120
|
if (this.overlayEnable) {
|
package/src/header/nav.vue
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
:target="isSelf(item.link)"
|
|
13
13
|
v-reporter="{
|
|
14
14
|
data: {
|
|
15
|
-
item: item.link,
|
|
15
|
+
item: trimSlash(item.link),
|
|
16
16
|
},
|
|
17
17
|
caller: 'index_nav',
|
|
18
18
|
}"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
:target="isSelf(subitem.link)"
|
|
30
30
|
v-reporter="{
|
|
31
31
|
data: {
|
|
32
|
-
item: subitem.link,
|
|
32
|
+
item: trimSlash(subitem.link),
|
|
33
33
|
},
|
|
34
34
|
caller: 'index_nav',
|
|
35
35
|
}"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
:href="item.link"
|
|
48
48
|
v-reporter="{
|
|
49
49
|
data: {
|
|
50
|
-
item: item.link,
|
|
50
|
+
item: trimSlash(item.link),
|
|
51
51
|
},
|
|
52
52
|
caller: 'index_nav',
|
|
53
53
|
}"
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
:target="isSelf(item.link)"
|
|
77
77
|
v-reporter="{
|
|
78
78
|
data: {
|
|
79
|
-
item: item.link,
|
|
79
|
+
item: trimSlash(item.link),
|
|
80
80
|
},
|
|
81
81
|
caller: 'index_nav',
|
|
82
82
|
}"
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
:target="isSelf(subitem.link)"
|
|
96
96
|
v-reporter="{
|
|
97
97
|
data: {
|
|
98
|
-
item: subitem.link,
|
|
98
|
+
item: trimSlash(subitem.link),
|
|
99
99
|
},
|
|
100
100
|
caller: 'index_nav',
|
|
101
101
|
}"
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
:class="{ on: isFocus(item.link) }"
|
|
111
111
|
v-reporter="{
|
|
112
112
|
data: {
|
|
113
|
-
item: item.link,
|
|
113
|
+
item: trimSlash(item.link),
|
|
114
114
|
},
|
|
115
115
|
caller: 'index_nav',
|
|
116
116
|
}"
|
|
@@ -129,6 +129,7 @@
|
|
|
129
129
|
<script>
|
|
130
130
|
import default_nav from "../../assets/data/nav.json";
|
|
131
131
|
import { getMenu } from "../../service/header";
|
|
132
|
+
import { trimSlash } from "../../assets/js/utils";
|
|
132
133
|
export default {
|
|
133
134
|
props: [],
|
|
134
135
|
data: function () {
|
|
@@ -192,6 +193,7 @@ export default {
|
|
|
192
193
|
console.log("loadNav error", e);
|
|
193
194
|
}
|
|
194
195
|
},
|
|
196
|
+
trimSlash,
|
|
195
197
|
},
|
|
196
198
|
created: function () {
|
|
197
199
|
this.loadNav();
|