@jx3box/jx3box-common-ui 7.9.6 → 7.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "7.9.6",
3
+ "version": "7.9.7",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -134,7 +134,7 @@ 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'],
@@ -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
  }