@jx3box/jx3box-common-ui 7.9.6 → 7.9.8
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/nav.vue +3 -3
package/package.json
CHANGED
package/src/header/nav.vue
CHANGED
|
@@ -134,12 +134,12 @@ import { trimSlash } from "../../assets/js/utils";
|
|
|
134
134
|
const activeNav = {
|
|
135
135
|
index: ['index'],
|
|
136
136
|
macro: ['macro', 'pz'],
|
|
137
|
-
tool: ['app', 'jx3dat', 'dbm'],
|
|
137
|
+
tool: ['app', 'jx3dat', 'dbm', 'tool'],
|
|
138
138
|
bps: ['bps', 'jcl', 'battle'],
|
|
139
139
|
fb: ['fb','baizhan','team', 'jdt', 'rank'],
|
|
140
140
|
cj: ['cj', 'item', 'knowledge', 'quest'],
|
|
141
141
|
pvx: ['face', 'adventure', 'pvg'],
|
|
142
|
-
bbs: ['bbs','topic','event'],
|
|
142
|
+
bbs: ['bbs','topic','event', 'emotion', 'joke', 'namespace', 'collection'],
|
|
143
143
|
pvp: ['pvp']
|
|
144
144
|
}
|
|
145
145
|
|
|
@@ -186,7 +186,7 @@ export default {
|
|
|
186
186
|
let active = '';
|
|
187
187
|
const pathname = location.pathname?.split('/')?.filter(Boolean)?.[0] || '';
|
|
188
188
|
for (const key in activeNav) {
|
|
189
|
-
if (activeNav[key].includes(pathname)) {
|
|
189
|
+
if (pathname && activeNav[key].includes(pathname)) {
|
|
190
190
|
active = key;
|
|
191
191
|
break;
|
|
192
192
|
}
|