@jx3box/jx3box-common-ui 7.7.2 → 7.7.3
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/Box.vue +7 -2
- package/src/header/nav.vue +6 -1
package/package.json
CHANGED
package/src/Box.vue
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
href="/index"
|
|
12
12
|
v-reporter="{
|
|
13
13
|
data: {
|
|
14
|
-
item:
|
|
14
|
+
item: `${prefix}:/index`,
|
|
15
15
|
},
|
|
16
16
|
caller: 'index_nav_matrix',
|
|
17
17
|
}"
|
|
@@ -80,6 +80,9 @@ export default {
|
|
|
80
80
|
return item.status && (item.client == this.client || item.client == "all");
|
|
81
81
|
});
|
|
82
82
|
},
|
|
83
|
+
prefix: function (){
|
|
84
|
+
return this.client === 'std' ? 'www' : 'origin';
|
|
85
|
+
}
|
|
83
86
|
},
|
|
84
87
|
methods: {
|
|
85
88
|
closeBox: function () {
|
|
@@ -114,7 +117,9 @@ export default {
|
|
|
114
117
|
console.log("loadBox error", e);
|
|
115
118
|
}
|
|
116
119
|
},
|
|
117
|
-
trimSlash
|
|
120
|
+
trimSlash(link) {
|
|
121
|
+
return trimSlash(`${this.prefix}:${link}`);
|
|
122
|
+
},
|
|
118
123
|
},
|
|
119
124
|
created: function () {
|
|
120
125
|
if (this.overlayEnable) {
|
package/src/header/nav.vue
CHANGED
|
@@ -164,6 +164,9 @@ export default {
|
|
|
164
164
|
client() {
|
|
165
165
|
return location.href.includes("origin") ? "origin" : "std";
|
|
166
166
|
},
|
|
167
|
+
prefix() {
|
|
168
|
+
return this.client === 'std' ? 'www' : 'origin';
|
|
169
|
+
}
|
|
167
170
|
},
|
|
168
171
|
methods: {
|
|
169
172
|
isFocus: function (type) {
|
|
@@ -193,7 +196,9 @@ export default {
|
|
|
193
196
|
console.log("loadNav error", e);
|
|
194
197
|
}
|
|
195
198
|
},
|
|
196
|
-
trimSlash
|
|
199
|
+
trimSlash(link) {
|
|
200
|
+
return trimSlash(`${this.prefix}:${link}`);
|
|
201
|
+
},
|
|
197
202
|
},
|
|
198
203
|
created: function () {
|
|
199
204
|
this.loadNav();
|