@jx3box/jx3box-common-ui 7.9.0 → 7.9.1
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 +1 -1
package/package.json
CHANGED
package/src/header/nav.vue
CHANGED
|
@@ -184,7 +184,7 @@ export default {
|
|
|
184
184
|
methods: {
|
|
185
185
|
isFocus: function (type) {
|
|
186
186
|
let active = '';
|
|
187
|
-
const pathname = location.pathname?.split('/')?.filter(Boolean)?.[0] || '';
|
|
187
|
+
const pathname = location.pathname?.split('/')?.filter(Boolean)?.[0] || 'index';
|
|
188
188
|
for (const key in activeNav) {
|
|
189
189
|
if (activeNav[key].includes(pathname)) {
|
|
190
190
|
active = key;
|